Ziwako Docs
ZiwakoRéférence APIServices

Create Service

POST
/services

Authorization

X-API-Key<token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/services" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "serviceType": "string",    "owner": "string"  }'
{  "status": 0,  "message": "string",  "data": {    "id": "string",    "name": "string",    "description": "string",    "serviceType": {      "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": {}    },    "attributes": "string",    "owner": {      "id": "string",      "username": "string",      "description": "string",      "proType": "particular",      "fullName": "string",      "firstName": "string",      "lastName": "string",      "profilPicture": {        "Key": "string",        "Bucket": "string",        "Location": "string",        "public": "string"      },      "coverPicture": {        "Key": "string",        "Bucket": "string",        "Location": "string",        "public": "string"      },      "credit": 0,      "status": "active",      "maxOpportunityNbr": 0,      "currentOpportunityNbr": 0,      "owner": "string",      "manager": {},      "members": [        {          "id": "string",          "profil": {            "id": "string",            "username": "string",            "firstName": "string",            "lastName": "string",            "fullName": "string",            "profilPicture": {              "Key": "string",              "Bucket": "string",              "Location": "string",              "public": "string"            },            "coverPicture": {              "Key": "string",              "Bucket": "string",              "Location": "string",              "public": "string"            },            "profilType": "user",            "authId": "string",            "contacts": {              "tels": [                "string"              ],              "emails": [                "string"              ],              "message": "string",              "position": {                "name": "string",                "location": {                  "type": "Point",                  "coordinates": [                    0,                    0                  ]                }              },              "socialMedia": {                "facebook": "string",                "twitter": "string",                "linkedin": "string",                "instagram": "string",                "tiktok": "string"              },              "externalAccounts": [                {                  "provider": "string",                  "accountId": "string",                  "payload": {}                }              ]            },            "billingPlan": {},            "planBenefices": {              "maxSimultaneousSearch": 0,              "maxContactsPerSearch": 0            },            "credit": 0,            "balance": 0,            "createdAt": "2019-08-24T14:15:22Z",            "updatedAt": "2019-08-24T14:15:22Z",            "profilNumber": "string"          },          "role": "string",          "joinedAt": "string"        }      ],      "contacts": {        "tels": [          "string"        ],        "emails": [          "string"        ],        "message": "string",        "position": {          "name": "string",          "location": {            "type": "Point",            "coordinates": [              0,              0            ]          }        },        "socialMedia": {          "facebook": "string",          "twitter": "string",          "linkedin": "string",          "instagram": "string",          "tiktok": "string"        },        "externalAccounts": [          {            "provider": "string",            "accountId": "string",            "payload": {}          }        ]      },      "organizationId": "string",      "billingPlan": {},      "planBenefices": {        "maxService": 0,        "maxCompetence": 0,        "maxPicturePerProduct": 0,        "maxSimultaneousOpportunity": 0      },      "badges": [        {          "dateEarned": "2019-08-24T14:15:22Z",          "badge": {}        }      ],      "metrics": {        "responseRate": 0,        "avgResponseTime": 0,        "acceptanceRate": 0,        "completionRate": 0,        "rating": 0,        "connectionCount": 0      },      "ratings": {        "average": 0,        "count": 0,        "details": {          "courtesy": 0,          "cleanliness": 0,          "quality": 0,          "punctuality": 0,          "communication": 0,          "value": 0        }      },      "balance": 0,      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z",      "proProfilNumber": "string",      "bonusBalance": 0,      "welcomeBonusGrantedAt": "2019-08-24T14:15:22Z",      "welcomeBonusSource": "string"    },    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z",    "serviceNumber": "string"  },  "type": "string",  "code": "string"}