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
name
string
required
Example:

"Thunderbolt"

owner_email
string<email>
required
owner_phone
string
required
Example:

"+966512345678"

date_of_birth
string<date>
required
Example:

"2018-05-20"

sex
enum<string>
required
Available options:
male,
female
Example:

"female"

color
string
required
Example:

"Bay"

breed
string
required
Example:

"other"

purchased
boolean
required
Example:

true

did_participate
enum<string>
required
Available options:
yes,
no
Example:

"yes"

has_abortion
enum<string>
required
Available options:
yes,
no
Example:

"yes"

has_embryo_transfers
enum<string>
required
Available options:
yes,
no
Example:

"yes"

use
string
required
Example:

"racing"

declaration
enum<string>
required
Available options:
yes,
no
Example:

"yes"

proposer_name
string
Example:

"Ahmed Al Saeed"

breed_name
string
Example:

"Arabian Mix"

microchip_number
string
Example:

"1234567890"

purchase_date
string<date>
Example:

"2023-07-15"

purchase_place
string
Example:

"Riyadh"

participation_details
string
Example:

"Won first place in endurance race 2022"

abortion_details
string
Example:

"Occurred in 2021 due to illness"

embryo_transfers_details
string
Example:

"2 embryo transfers completed"

recipient_or_donor
enum<string>
Available options:
recipient,
donor
Example:

"donor"

upload
file

Response

Horse policy created successfully