Carregando...

coredrive-api

[General] Status codes

The status code can be any of the following numbers:

  • 100 – successful
  • 996 – server error
  • 997 – not authorized
  • 998 – not found
  • 999 – unknown error

Add User

Authenticated Create a new user on the CoreDrive server.

Syntax

Request PathMethodContent Type
ocs/v1.php/cloud/usersPOSTtext/plain
ArgumentTypeDescription
groupsarrayGroups to add the user to (optional). Groups must already exist.
passwordstringThe required password for the new user.
useridstringThe required username for the new user.

Status Codes

  • 100 – successful
  • 101 – invalid input data
  • 102 – username already exists
  • 103 – unknown error occurred whilst adding the user
  • 104 – group does not exist

List Users

Authenticated Retrieves a list of users from the CoreTecnologia server.

Syntax

Request PathMethodContent Type
ocs/v1.php/cloud/usersGETtext/plain
ArgumentTypeDescription
searchstringoptional search string
limitintoptional limit value
offsetintoptional offset value

Status Codes

  • 100 – successful

Get User

Authenticated Retrieves information about a single user.

Syntax

Request PathMethodContent Type
Syntax: ocs/v1.php/cloud/users/{userid}GETtext/plain
ArgumentTypeDescription
useridintId of the user to retrieve

Status Codes

  • 100 – successful

Edit User

Authenticated Edits attributes related to a user. Users are able to edit email, displayname and password; admins can also edit the quota value. Exactly one attribute can be set or modified at a time. To set or modify multiple attributes then multiple calls must be made.

Syntax

Request PathMethodContent Type
ocs/v1.php/cloud/users/{userid}PUTtext/plain
ArgumentTypeDescription
keystringthe field to edit (email, quota, display, password)
valuemixedthe new value for the field

Status Codes

  • 100 – successful
  • 101 – user not found
  • 102 – invalid input data

Delete User

Authenticated Deletes a user from the ownCloud server.

Syntax

Request PathMethodContent Type
ocs/v1.php/cloud/users/{userid}DELETEtext/plain
ArgumentTypeDescription
useridstringThe id of the user to delete

Status Codes

  • 100 – successful
  • 101 – failure
Tecnologias, Parcerias e Certificados Técnicos

Gostaria de mais informações
sobre nossos serviços?

Solicite atendimento.
Um de nossos especialistas entratá em contato.

Fale com especialista