NOT FOR PUBLIC DISTRIBUTION: 2020-09-23

Create/ Add a new travel document type

post

/spms/v1/configurations/travelDocumentTypes

This is to create/ add a new travel document type

Request

Supported Media Types
Body ()
Required to create Travel Document Type
Root Schema : Travel Document Type
Type: object
Title: Travel Document Type
Travel Document Type
Show Source
Back to Top

Response

Supported Media Types

201 Response

Travel Document Type has been created
Body ()
Root Schema : Travel Document Type
Type: object
Title: Travel Document Type
Document Type
Show Source

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 Travel Document Type that already existed
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