Skip to main content
POST
Create a horse policy

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