[{"label":"Latest (2.0.0)","version":"latest"},{"version":"1.0.0"}]
srm-rest-api

Login

Description

Logs in and returns the session ID. In the subsequent requests, include the ‘x-dr-session’ header with the value of the returned session ID.

Request

Request

URL

URL


post
https://{api_host}//session
Copy

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

200 OK

Returns SessionIdData of type application/json

Successfully authenticated. The session ID is returned in the response body. In the subsequent requests, include the ‘x-dr-session’ header with the value of the returned session ID.

{
	"session_id": "string"
}
string
session_id Optional
Errors

Errors

ResponseError
400

Bad request - the server could not understand the request due to invalid syntax or invalid request body content


ResponseError
500

Internal server error - unexpected condition prevents fulfilling the request

Code Samples

Code Samples

cURL Command

curl -X POST https://{api_host}/session


[{"label":"Latest (2.0.0)","version":"latest"},{"version":"1.0.0"}]
srm-rest-api
Feedback

Was this page helpful?