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