records

Create a new record

Create a new record with an already encrypted payload. This is the non-porcelain endpoint. If you want to create a new record with plaintext data, use the record create porcelain command or the records ingest command with a proxy.

The response will be the newly created record object.

On the command line:

blind records create --data encrypted-record.json
post/api/records/

Request

Request body

idstring required
urlstring uri required
schemastring uri required
hashed_label_mapobject required
dataobject

The data that this record represents.

Example request

{
  "hashed_label_map": {
    "b92e749344f081287b034c57b7a02c77f": {
      "hashed_value": "b4486fe169178ec73d3dfad17227da820b89d27e1994f7",
      "field_schema": {
        "type": "string"
      }
    },
    "961298e17a97e7d0b847b8b743e179b2b": {
      "hashed_value": "8d90841201a70611da0b964a743564e035fc",
      "field_schema": {
        "type": "number",
        "minimum": 0,
        "maximum": 10
      }
    }
  }
}

Response

idstring required
urlstring uri required
schemastring uri required
hashed_label_mapobject required
dataobject

The data that this record represents.

Example response

{
  "hashed_label_map": {
    "b92e749344f081287b034c57b7a02c77f": {
      "hashed_value": "b4486fe169178ec73d3dfad17227da820b89d27e1994f7",
      "field_schema": {
        "type": "string"
      }
    },
    "961298e17a97e7d0b847b8b743e179b2b": {
      "hashed_value": "8d90841201a70611da0b964a743564e035fc",
      "field_schema": {
        "type": "number",
        "minimum": 0,
        "maximum": 10
      }
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.