Sections ▾

POST ​/api​/vaults

Stores your custom JSON documents in the vault.

  
    curl -X POST "https://app.contexthub.com/api/vaults" \
         -H "Authorization: Token token=\"534e565f-335a-469d-974e-e18a85f00d2d\"" \
         -H "CONTEXTHUB_DEVICE_ID: 41F87E4D-59CD-4315-936C-95CCC6BFCEFF" \
         -H "Content-Type: application/json" \
         -d "{\"vault\":{\"data\":{\"text\":\"hi\"},\"tags\":[\"foo\"]}}" \
         -v \
  

Request

Example Request

{
  "vault": {
    "tags": [
      "foo"
    ],
    "data": {
    }
  }
}

Example Parameters

Response

Example Response

{
  "data": {
  },
  "vault_info": {
    "id": "6bf6fefb-2d4d-4a91-8a0a-ccc7ede5eaca",
    "tags": [
      "foo"
    ],
    "created_at": "2014-06-26T16:00:37.035Z",
    "updated_at": "2014-06-26T16:00:37.035Z",
    "tag_string": "tag1,tag2,tag3"
  }
}

Response Parameters

Response Codes

Successful Response Codes

Failure Response Codes