PATCH: https://{env}-api.xebo.ai/v3/survey-management/surveys/folders/{folder_id}

 Authorization:
 type: Bearer type
 token: <access token> granted from login API
 Or
 x-api-key: <api key copied from the platform>
 Content-Type: application/json
 {
   "name": "Folder 2"
 }
Key Type Mandatory Description
name string yes Name of the folder to be updated

Request Sample

curl --location --request PATCH 'https://az4-api.xebo.ai/v3/survey-management/surveys/folders/2ed74e87-ad35-4d2e-a3fe-d04ad2be8d16' \ 
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9' \ 
--header 'Content-Type: application/json' \ 
--data '{ 
  "name": "Folder 3"  
} '
 var data = JSON.stringify({ 
   "name": "Folder 3" 
 }); 

 var xhr = new XMLHttpRequest(); 
 xhr.withCredentials = true; 
 xhr.addEventListener("readystatechange", function() { 
   if(this.readyState === 4) { 
     console.log(this.responseText); 
   } 
 }); 

 xhr.open("PATCH", "https://az4-api.xebo.ai/v3/survey-management/surveys/folders/2ed74e87-ad35-4d2e-a3fe-d04ad2be8d16"); 
 xhr.setRequestHeader("Authorization", "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9");
 xhr.setRequestHeader("Content-Type", "application/json"); 
 xhr.send(data); 

Responses

 { 
   "message": "Folder updated successfully." 
 } 
 {
 "success":false,
 "code":401,
 "status":"Unauthorized",
 "error":"AUTHENTICATION_ERROR",
 "message":"The authorization token was not provided",
 }
 { 
  "success": false, 
  "code": 500, 
  "status": "Internal Server Error", 
  "error": "SERVER_ERROR", 
  "message": "Error in processing your request" 
 } 

Note: Please do not share your tokens in publicly accessible areas or to anyone. Also, this token generated is valid for 24 hours only. After its expiry, you can regenerate the access token from the same API endpoint by passing the username and password or from the refresh token API with the help of refresh token.

Create a new Folder

POST: https://{env}-api.xebo.ai/v3/survey-management/surveys/folders Headers Content-Type: application/json Authorization type: Bearer type token: <access token> granted from login API Or x-api-key: <api key…

Get all folders

GET: https://{env}-api.xebo.ai/v3/survey-management/surveys/folders Headers Authorization: type: Bearertype token: <access token> granted from login API Or x-api-key: <apikeycopiedfromtheplatform> Content-Type: application/json Request SamplecURL…

Delete a Folder

DELETE : https://{env}-api.xebo.ai/v3/survey-management/surveys/folders/{folder_id} Query Params:  Key  Type  Mandatory  Description  transferFolderId  string  no  Folder id where you want to transfer your…

Ask a human

Can't Find What You're Looking For?