/api/v1/locations/{locationId}/place-folds (PUT)
PUT
/api/v1/locations/{locationId}/place-folds
const url = 'https://example.com/api/v1/locations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/place-folds';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"fold":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"],"open":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/api/v1/locations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/place-folds \ --header 'Content-Type: application/json' \ --data '{ "fold": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "open": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ] }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”locationId
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
fold
required
Array<string>
open
required
Array<string>
Examplegenerated
{ "fold": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "open": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ]}Responses
Section titled “Responses”Default Response