Examples of API requests
A generic swagger is available here. A specific one with your endpoints is available at your organization’s URL (https://[your_organization].datome.io/swagger).
To create a model, a POST request containing the model's required attributes is sent to the appropriate endpoint:
After creating the model silklot00456, the new Garment can be directly linked to it during the creation process:
To call the mutation send_to_confirmed, a POST request is sent to the correct endpoint containing all the parameters defined in the Model:
In this final API request example, the request body contains the required input parameter to call the second mutation send_to_recalled defined in the fabric Model, which in this case, updates the notes field of the silklot00456 model.
Note: The values for the send_to_recalled mutation of the Model Garment should be listed in the first params field. In the case given above, it can be blank. The values needed for the send_to_recalled mutation of the Model Fabric are listed in the params section that comes after. In the case shown above, it gives a value for notes.
Last updated