Update Business
PUT/api/v2/business/:businessId
Update Business
Request
Path Parameters
businessId stringrequired
Business ID.
- application/json
Body
required
The attributes property will be completely overwritten with this one. Therefore, before performing the update, recover the data, make the modification and update.
name Name
Assign a name to your business.
attributes object
Define custom attributes for each deal.
Responses
- 200
- 400
- 401
- 500
BusinessCreateResponse
- application/json
- Schema
- Example (from schema)
Schema
businessId stringrequired
name stringrequired
businessToken stringrequired
attributes objectrequired
createdAt date-timerequired
updatedAt date-timerequired
deletedAt date-timerequired
{
"businessId": "string",
"name": "string",
"businessToken": "string",
"attributes": {},
"createdAt": "2024-04-14T14:11:05.601Z",
"updatedAt": "2024-04-14T14:11:05.601Z",
"deletedAt": "2024-04-14T14:11:05.601Z"
}
BadRequestException
- application/json
- Schema
- Example (from schema)
Schema
message string[]required
Default value: string,[object Object]
error stringrequired
statusCode numberrequired
{
"message": [
"string"
],
"error": "string",
"statusCode": 0
}
UnauthorizedException
- application/json
- Schema
- Example (from schema)
Schema
message string[]required
Default value: string,[object Object]
error stringrequired
statusCode numberrequired
{
"message": [
"string"
],
"error": "string",
"statusCode": 0
}
InternalServerErrorException
- application/json
- Schema
- Example (from schema)
Schema
message string[]required
Default value: string,[object Object]
error stringrequired
statusCode numberrequired
{
"message": [
"string"
],
"error": "string",
"statusCode": 0
}
Loading...