/api/v1/place-templates/{id} (PATCH)
PATCH
/api/v1/place-templates/{id}
const url = 'https://example.com/api/v1/place-templates/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PATCH', headers: {'Content-Type': 'application/json'}, body: '{"name":"example","layout":{"kind":"grid","across":1,"up":1},"kindKey":"example","compartmentKindKey":"example","compartmentName":"example","codePattern":"example","locationIds":["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 PATCH \ --url https://example.com/api/v1/place-templates/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "layout": { "kind": "grid", "across": 1, "up": 1 }, "kindKey": "example", "compartmentKindKey": "example", "compartmentName": "example", "codePattern": "example", "locationIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ] }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
string
layout
kindKey
string
compartmentKindKey
string
compartmentName
string
locationIds
Array<string>
Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
id
required
string format: uuid
name
required
string
layout
required
kindKey
required
string
compartmentKindKey
required
string
compartmentName
required
string
codePattern
required
string | null
locations
required
Array<object>
object
id
required
string format: uuid
name
required
string
rowVersion
required
integer
Example
{ "layout": { "kind": "grid" }}