API documentation for HeyDonto API
curl -i -X GET \ https://docs.heydonto.com/_mock/apis/heydonto/openapi/brands \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
[ { "id": 456, "title": "HealthCorp", "isEnabled": true, "createdAt": "2021-05-01T12:00:00Z", "updatedAt": "2021-05-01T12:00:00Z" } ]
The title of the organization the brand is associated with (if applicable)
The ID of the organization the brand is associated with (if applicable)
Indicates whether a new organization is being added for the brand
curl -i -X POST \ https://docs.heydonto.com/_mock/apis/heydonto/openapi/brands \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'Content-Type: application/json' \ -d '{ "title": "HealthCorp", "organizationTitle": "Global Health Group", "organizationId": 123, "isAddingNewOrganization": true, "isEnabled": true }'
Brand created successfully.
The title of the organization the brand is associated with (if applicable)
The ID of the organization the brand is associated with (if applicable)
Indicates whether a new organization is being added for the brand
{ "title": "HealthCorp", "organizationTitle": "Global Health Group", "organizationId": 123, "isAddingNewOrganization": true, "isEnabled": true }
curl -i -X GET \ 'https://docs.heydonto.com/_mock/apis/heydonto/openapi/brands/{brandId}' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
Brand retrieved successfully.
The title of the organization the brand is associated with (if applicable)
The ID of the organization the brand is associated with (if applicable)
Indicates whether a new organization is being added for the brand
{ "title": "HealthCorp", "organizationTitle": "Global Health Group", "organizationId": 123, "isAddingNewOrganization": true, "isEnabled": true }
The title of the organization the brand is associated with (if applicable)
The ID of the organization the brand is associated with (if applicable)
Indicates whether a new organization is being added for the brand
curl -i -X PUT \ 'https://docs.heydonto.com/_mock/apis/heydonto/openapi/brands/{brandId}' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'Content-Type: application/json' \ -d '{ "title": "HealthCorp", "organizationTitle": "Global Health Group", "organizationId": 123, "isAddingNewOrganization": true, "isEnabled": true, "id": 456 }'
Brand updated successfully.
The title of the organization the brand is associated with (if applicable)
The ID of the organization the brand is associated with (if applicable)
Indicates whether a new organization is being added for the brand
{ "title": "HealthCorp", "organizationTitle": "Global Health Group", "organizationId": 123, "isAddingNewOrganization": true, "isEnabled": true, "id": 456 }
curl -i -X DELETE \ 'https://docs.heydonto.com/_mock/apis/heydonto/openapi/brands/{brandId}' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{ "message": "Unauthorized", "statusCode": 401 }