Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

RequestGET /department/{departmentId}

...

...

Permissions to

...

Run the

...

Request

Account Owner, Account Administrators, Department

...

Administrators, Publishersor custom roles

Department

...

Administrators, Publishers, and users with a custom role can get information only on the department they manage and its

...

enclosed departments.

Request Headers


ParameterDescription
X-Auth-Account-Url (required)Base URL of the account, e.g. http://myaccount.ispringlearn.com
X-Auth-Email (required)Login of Account Owner,AdministratorDepartment Administrator, or PublisherPublisher, or a user  with a custom role.
X-Auth-Password (required)Password of Account Owner,AdministratorDepartment Administrator, or Publisher.
After the request has been completed, the system returns the response with the 200 code. The response code contains xml info on the department.
, or a user  with a custom role.


Possible Response Codes

CodeTextDescription
200Successful operation

The request was successfully processed. The response code contains xml info on the department.

400Bad RequestA request error.
401UnauthorizedAn authorization error.
403Permission Denied

The user doesn't have enough permissions to get information on the department.


Sample Request

Code Block
languagexml
GET /department/d479bc48-5b70-11e9-b123-22e9fbac4a59 HTTP/1.1
Host: api-learn.ispringlearn.com
X-Auth-Account-Url: https://myaccount.ispringlearn.com
X-Auth-Email: email@email.com
X-Auth-Password: password


...