Register Client Application
post
/spms/access/clients
To register client application to API
Request
Supported Media Types
- application/x-www-form-urlencoded
Root Schema : clientRegistrationRequest
Type:
Show Source
object
-
password:
string
Pattern:
^[a-zA-Z0-9 _,\\?/\\.\\-\\\\+\\*\n~!@#$%&{}\\[\\]()=<>\\|\\^\\":;@`]*$
Your password. Mandatory for password login. -
username:
string
Pattern:
^[A-Za-z0-9-_.]{2,20}$
Your username. Mandatory for password login.
Response
Supported Media Types
- application/json
200 Response
OK
Root Schema : clientRegistrationResponse
Type:
Show Source
object
-
client_id:
string
Pattern:
^[A-Z0-9]+?$
Randomly generated 16-bytes (32-characters) hex string value for client application registrationExample:C24CCDE1FEE372A152956675B1D14E6C
400 Response
Bad Request
Root Schema : schema
Match All
Show Source
Example:
{
"error":"invalid_grant",
"error_description":"Bad credentials"
}
Nested Schema : clientRegistrationErrorResponse
Type:
Show Source
object
-
error:
string
Pattern:
^[A-Za-z0-9-_.]+$
Code representing the reason why the attempt to authenticate the user failed.Example:invalid_grant
-
error_description:
string
Pattern:
^[A-Za-z0-9-_.]+$
Short human readable description of why the attempt to authenticate failed.Example:Bad credentials
401 Response
Unauthorized
Root Schema : schema
Match All
Show Source
Example:
{
"error":"unauthorized",
"error_description":"Authentication Failed. Username or Password not valid."
}
Nested Schema : clientRegistrationErrorResponse
Type:
Show Source
object
-
error:
string
Pattern:
^[A-Za-z0-9-_.]+$
Code representing the reason why the attempt to authenticate the user failed.Example:invalid_grant
-
error_description:
string
Pattern:
^[A-Za-z0-9-_.]+$
Short human readable description of why the attempt to authenticate failed.Example:Bad credentials
405 Response
Method Not Allowed
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error response returned when encountered error
Example:
{
"type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.6",
"title":"Method Not Supported",
"detail":"HTTP method not supported for this resource"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error response returned when encountered error
Show Source
406 Response
Not Acceptable
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error response returned when encountered error
Example:
{
"type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.7",
"title":"Not Acceptable",
"detail":"Request a Mime type that is supported for this Resource"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error response returned when encountered error
Show Source
415 Response
Unsupported Media Type
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error response returned when encountered error
Example:
{
"type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.16",
"title":"Unsupported Media Type",
"detail":"Content type not supported"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error response returned when encountered error
Show Source
500 Response
Internal Server Error
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error response returned when encountered error
Example:
{
"type":"https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.5.1",
"title":"Internal Server Error",
"detail":"Issue fulfilling request. Please retry or contact support"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error response returned when encountered error
Show Source