Create a note
client.note.create(NoteCreateParams { fields, relationships } body, RequestOptionsoptions?): NoteCreateResponse { id, createdAt, fields, 4 more }
POST/v1/notes
Creates a new note record.
The note author is automatically set to the API key owner.
Supports idempotency via the Idempotency-Key header.
Required scope: notes:create
Rate limit category: Write
Parameters
Returns
Create a note
import Lightfield from 'lightfield';
const client = new Lightfield({
apiKey: 'My API Key',
});
const noteCreateResponse = await client.note.create({ fields: { $title: '$title' } });
console.log(noteCreateResponse.id);{
"id": "id",
"createdAt": "createdAt",
"fields": {
"foo": {
"value": "string",
"valueType": "ADDRESS"
}
},
"httpLink": "httpLink",
"relationships": {
"foo": {
"cardinality": "cardinality",
"objectType": "objectType",
"values": [
"string"
]
}
},
"updatedAt": "updatedAt",
"externalId": "externalId"
}Returns Examples
{
"id": "id",
"createdAt": "createdAt",
"fields": {
"foo": {
"value": "string",
"valueType": "ADDRESS"
}
},
"httpLink": "httpLink",
"relationships": {
"foo": {
"cardinality": "cardinality",
"objectType": "objectType",
"values": [
"string"
]
}
},
"updatedAt": "updatedAt",
"externalId": "externalId"
}