Note that unlike other models that follow standard CakePHP singular/plural conventions, CoTermsAndConditions is both the singular and plural.

Support for this API was added in v1.1.0.

Add

Add a new CO Terms and Conditions record.

Request Format

Method

POST

URL

/co_terms_and_conditions.<format>

Request Body

CoTermsAndConditions Request

Response Format

HTTP Status

Response Body

Description

201 Added

NewObjectResponse with ObjectType of CoTermsAndConditions

CoTermsAndConditions created

400 Bad Request

 

CoTermsAndConditions Request not provided in POST body

400 Invalid Fields

ErrorResponse with details in InvalidFields element

An error in one or more provided fields

401 Unauthorized

 

Authentication required

403 Co Does Not Exist

 

The specified CO does not exist

500 Other Error

 

Unknown error


Delete

Remove a CO Terms and Conditions record.

Request Format

Method

DELETE

URL

/co_terms_and_conditions/<id>.<format>

Request Body

 

Response Format

HTTP Status

Response Body

Description

200 Deleted

 

CoTermsAndConditions deleted

400 Invalid Fields

 

id not provided

401 Unauthorized

 

Authentication required

404 CoTermsAndConditions Unknown

 

id not found

500 Other Error

 

Unknown error


Edit

Edit an existing CO Terms and Conditions record.

Request Format

Method

PUT

URL

/co_terms_and_conditions/<id>.<format>

Request Body

CoTermsAndConditions Request

Response Format

HTTP Status

Response Body

Description

200 OK

 

CoTermsAndConditions updated

400 Bad Request

 

CoTermsAndConditions Request not provided in POST body

400 Invalid Fields

ErrorResponse with details in InvalidFields element

An error in one or more provided fields

401 Unauthorized

 

Authentication required

404 CoTermsAndConditions Unknown

 

id not found

500 Other Error

 

Unknown error


View (all)

Retrieve all existing CO Terms and Conditions.

Request Format

Method

GET

URL

/co_terms_and_conditions.<format>

Request Body

 

Response Format

HTTP Status

Response Body

Description

200 OK

CoTermsAndConditions Response

CoTermsAndConditions returned

401 Unauthorized

 

Authentication required

500 Other Error

 

Unknown error


View (per CO)

Retrieve all existing CO Terms and Conditions records for a specific CO.

Request Format

Method

GET

URL

/co_terms_and_conditions.<format>?coid=<id>

Request Body

 

Response Format

HTTP Status

Response Body

Description

200 OK

CoTermsAndConditions Response

CoTermsAndConditions returned

401 Unauthorized

 

Authentication required

404 CO Unknown

 

id Not Found

500 Other Error

 

Unknown error


View (one)

Retrieve an existing CO Terms and Conditions record.

Request Format

Method

GET

URL

/co_terms_and_conditions/<id>.<format>

Request Body

 

Response Format

HTTP Status

Response Body

Description

200 OK

CoTermsAndConditions Response

CoTermsAndConditions returned

401 Unauthorized

 

Authentication required

404 CoTermsAndConditions Unknown

 

id not found

500 Other Error

 

Unknown error


Notes

  • Response format requested is ignored where response is only via HTTP status, but must still be provided.

See Also

  • No labels