NOT FOR PUBLIC DISTRIBUTION: 2020-09-23

Create/ Add a new contract category

post

/spms/v1/contractCategories

This is to create/ add a new contract category to be used for a contract to identify the type of a contract

Request

Supported Media Types
Body ()
Required fields to create a Contract Category
Root Schema : ContractCategory
Type: object
Contract Category
Show Source
  • Minimum Value: 2
    Maximum Value: 200
    Pattern: ^[a-zA-Z0-9 ]*$
    Example: Contract Category description
  • Minimum Value: 2
    Maximum Value: 100
    Pattern: ^[a-zA-Z0-9 ]*$
    Example: Contract Category name
Back to Top

Response

Supported Media Types

201 Response

Contract Category has been created
Body ()
Root Schema : schema
Type: array
Show Source
Nested Schema : ContractCategory
Type: object
Contract Category
Show Source
  • Minimum Value: 2
    Maximum Value: 200
    Pattern: ^[a-zA-Z0-9 ]*$
    Example: Contract Category description
  • Minimum Value: 2
    Maximum Value: 100
    Pattern: ^[a-zA-Z0-9 ]*$
    Example: Contract Category name

400 Response

Invalid parameter(s) passed in
Body ()
Root Schema : Error Response
Type: object
Title: Error Response
Error Response returned when encountered error
Show Source

401 Response

You are not authorized to use this API
Body ()
Root Schema : Error Response
Type: object
Title: Error Response
Error Response returned when encountered error
Show Source

403 Response

You are forbidden to use this API
Body ()
Root Schema : Error Response
Type: object
Title: Error Response
Error Response returned when encountered error
Show Source

405 Response

This method is not available
Body ()
Root Schema : Error Response
Type: object
Title: Error Response
Error Response returned when encountered error
Show Source

409 Response

You are trying to create a new Contract Category that exist
Body ()
Root Schema : Error Response
Type: object
Title: Error Response
Error Response returned when encountered error
Show Source

415 Response

The media supplied is not supported
Body ()
Root Schema : Error Response
Type: object
Title: Error Response
Error Response returned when encountered error
Show Source

500 Response

Error occurred while processing this request
Body ()
Root Schema : Error Response
Type: object
Title: Error Response
Error Response returned when encountered error
Show Source

502 Response

Bad Gateway

503 Response

Service not available
Back to Top