Phraseanet Documentation

Table Of Contents

Vous consultez actuellement la version 3.6. Consulter une autre version :

Records SetStatus

About

Set status to a record

/api/v1/records/{databox_id}/{record_id}/setstatus/
Informations  
HTTP Method  
Requires Authentication Yes

Parameters

Parameters Value Information
databox_id 94 The databox id of the record
record_id 5694 The record_id
status Array The status to modify

** Example **

status[4]=1&
status[5]=0&

is equivalent to

status = {
    4: 1,
    5: 0
}

Response Fields

Field Description
status The list of the status of the record

Response sample

{
    "meta": {
        "api_version": "1.0",
        "request": "POST /api/v1/records/52/4102/setstatus/",
        "response_time": "2011-07-27T14:08:06+02:00",
        "http_code": 200,
        "error_message": null,
        "error_details": null,
        "charset": "UTF-8"
    },
    "response": {
        "status": {
            "4": {
                "bit": 4,
                "state": true
            },
            "5": {
                "bit": 5,
                "state": false
            },
            "6": {
                "bit": 6,
                "state": false
            },
            "7": {
                "bit": 7,
                "state": false
            }
        }
    }
}