POST
/
policies
Create a horse policy
curl --request POST \
  --url https://staging.yasmina.ai/api/v1/horse/policies \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form name=Thunderbolt \
  --form [email protected] \
  --form 'owner_phone=+966512345678' \
  --form date_of_birth=2018-05-20 \
  --form sex=female \
  --form color=Bay \
  --form breed=other \
  --form purchased=true \
  --form did_participate=yes \
  --form has_abortion=yes \
  --form has_embryo_transfers=yes \
  --form use=racing \
  --form declaration=yes \
  --form upload=@example-file

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

multipart/form-data

Response

201

Horse policy created successfully