Create ServiceType
X-API-Key<token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Schéma pour un type de service
Response Body
application/json
curl -X POST "https://example.com/service_types" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "isPublic": true }'{ "type": "success", "code": "string", "status": 0, "message": "string", "data": { "id": "string", "name": "string", "description": "string", "illustration": "string", "serviceAbilities": [ { "name": "string", "description": "string" } ], "servicePricing": [ { "label": "string", "pricing": { "amount": 0, "currency": "string", "type": "rental", "frequency": "daily", "promotion": 0, "fee": 0 }, "strategy": "fixed", "dynamicConfig": { "formule": "string", "externalSources": [ { "sourceId": "string", "paramMapping": {} } ], "dataSource": {} } } ], "serviceFeed": { "amount": 0, "currency": "string", "type": "rental", "frequency": "daily", "promotion": 0, "fee": 0 }, "requiredCompetenceTypes": [ "string" ], "relatedProductTypes": [ "string" ], "isPublic": true, "noteOfCaution": "string", "owner": "string", "servicePrice": { "amount": 0, "currency": "string", "type": "rental", "frequency": "daily", "promotion": 0, "fee": 0 }, "attributeJSONSchema": {}, "formUISchema": {}, "presentationUISchema": {} }}