/api/v1/accounts/{accountId}/brands (POST)
POST
/api/v1/accounts/{accountId}/brands
const url = 'https://example.com/api/v1/accounts/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/brands';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","name":"example","website":"example","supportPhone":"example","claimUrl":"example","defaultWarrantyMonths":1}'};
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/brands \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "name": "example", "website": "example", "supportPhone": "example", "claimUrl": "example", "defaultWarrantyMonths": 1 }'Authorizations
Section titled “Authorizations”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
Examplegenerated
{ "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "name": "example", "website": "example", "supportPhone": "example", "claimUrl": "example", "defaultWarrantyMonths": 1}Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
item
required
object
possibleDuplicates
required
Array<object>
object
id
required
string format: uuid
name
required
string
similarity
required
number
Examplegenerated
{ "item": { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "rowVersion": 1, "ownerAccountId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "name": "example", "website": "example", "supportPhone": "example", "claimUrl": "example", "defaultWarrantyMonths": 1, "hasLogo": true }, "possibleDuplicates": [ { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "name": "example", "similarity": 1 } ]}