Request Headers

Key Value
Apitoken {"sig": "25ae3f6cdb1711e79997005056a6aba2", "name": "root"}
Content-Type application/x-www-form-urlencoded

Post Form

Key Value
name qfeng

Response Code

200

Response Headers

Key Value
Access-Control-Allow-Credentials true
Access-Control-Allow-Headers Content-Type, Content-Length, Apitoken
Access-Control-Allow-Methods POST, GET, OPTIONS, PUT, DELETE, UPDATE
Access-Control-Allow-Origin *
Access-Control-Expose-Headers Content-Length
Access-Control-Max-Age 86400
Content-Type application/json; charset=utf-8

Response Body

{"sig":"05434ff8db0311e7afde005056a6aba2","name":"qfeng","admin":true}

Request Headers

Key Value
Apitoken {"sig": "25ae3f6cdb1711e79997005056a6aba2", "name": "root"}
Content-Type application/x-www-form-urlencoded

Post Form

Key Value
name daye

Response Code

400

Response Headers

Key Value
Access-Control-Allow-Credentials true
Access-Control-Allow-Headers Content-Type, Content-Length, Apitoken
Access-Control-Allow-Methods POST, GET, OPTIONS, PUT, DELETE, UPDATE
Access-Control-Allow-Origin *
Access-Control-Expose-Headers Content-Length
Access-Control-Max-Age 86400
Content-Type application/json; charset=utf-8

Response Body

{"error":"no such user"}

Request Headers

Key Value
Apitoken {"sig": "05434ff8db0311e7afde005056a6aba2", "name": "qfeng"}
Content-Type application/x-www-form-urlencoded

Post Form

Key Value
name qfeng

Response Code

400

Response Headers

Key Value
Access-Control-Allow-Credentials true
Access-Control-Allow-Headers Content-Type, Content-Length, Apitoken
Access-Control-Allow-Methods POST, GET, OPTIONS, PUT, DELETE, UPDATE
Access-Control-Allow-Origin *
Access-Control-Expose-Headers Content-Length
Access-Control-Max-Age 86400
Content-Type application/json; charset=utf-8

Response Body

{"error":"API_USER not admin, no permissions can do this"}

Request Headers

Key Value
Apitoken {"sig": "25ae3f6cdb1711e79997005056a6aba2", "name": "root"}
Content-Type application/json

Request Body

{"admin": "yes", "user_id": 12}

Response Code

200

Response Headers

Key Value
Access-Control-Allow-Credentials true
Access-Control-Allow-Headers Content-Type, Content-Length, Apitoken
Access-Control-Allow-Methods POST, GET, OPTIONS, PUT, DELETE, UPDATE
Access-Control-Allow-Origin *
Access-Control-Expose-Headers Content-Length
Access-Control-Max-Age 86400
Content-Type application/json; charset=utf-8

Response Body

{"message":"user role update sccuessful, affect row: 0"}

Request Headers

Key Value
Apitoken {"sig": "25ae3f6cdb1711e79997005056a6aba2", "name": "root"}
Content-Type application/json

Request Body

{"admin": "no", "user_id": 12}

Response Code

200

Response Headers

Key Value
Access-Control-Allow-Credentials true
Access-Control-Allow-Headers Content-Type, Content-Length, Apitoken
Access-Control-Allow-Methods POST, GET, OPTIONS, PUT, DELETE, UPDATE
Access-Control-Allow-Origin *
Access-Control-Expose-Headers Content-Length
Access-Control-Max-Age 86400
Content-Type application/json; charset=utf-8

Response Body

{"message":"user role update sccuessful, affect row: 1"}

Request Headers

Key Value
Apitoken {"sig": "25ae3f6cdb1711e79997005056a6aba2", "name": "root"}
Content-Type application/json

Request Body

{"password": "lalala", "user_id": 12}

Response Code

200

Response Headers

Key Value
Access-Control-Allow-Credentials true
Access-Control-Allow-Headers Content-Type, Content-Length, Apitoken
Access-Control-Allow-Methods POST, GET, OPTIONS, PUT, DELETE, UPDATE
Access-Control-Allow-Origin *
Access-Control-Expose-Headers Content-Length
Access-Control-Max-Age 86400
Content-Type application/json; charset=utf-8

Response Body

{"message":"password updated!"}

Request Headers

Key Value
Apitoken {"sig": "25ae3f6cdb1711e79997005056a6aba2", "name": "root"}
Content-Type application/json

Request Body

{"user_id": 12}

Response Code

200

Response Headers

Key Value
Access-Control-Allow-Credentials true
Access-Control-Allow-Headers Content-Type, Content-Length, Apitoken
Access-Control-Allow-Methods POST, GET, OPTIONS, PUT, DELETE, UPDATE
Access-Control-Allow-Origin *
Access-Control-Expose-Headers Content-Length
Access-Control-Max-Age 86400
Content-Type application/json; charset=utf-8

Response Body

{"message":"user 12 has been delete, affect row: 1"}