Skip to main content
POST
/
api
/
v2
/
protobuf-descriptors:add
AddProtobufDescriptor
curl --request POST \
  --url https://your-sift-api-url.com/api/v2/protobuf-descriptors:add \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "protobufDescriptor": {
    "messageTypeFullName": "<string>",
    "fileDescriptorSet": "aSDinaTvuI8gbWludGxpZnk=",
    "protoFileName": "<string>",
    "namespace": "<string>",
    "protobufDescriptorId": "<string>"
  },
  "forceDuplicateRegistration": true
}'
{
  "protobufDescriptor": {
    "messageTypeFullName": "<string>",
    "fileDescriptorSet": "aSDinaTvuI8gbWludGxpZnk=",
    "protoFileName": "<string>",
    "namespace": "<string>",
    "protobufDescriptorId": "<string>",
    "createdDate": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
protobufDescriptor
object
forceDuplicateRegistration
boolean

If set to true, the service will ignore checks that this descriptor has already been registered and will ensure that it is registered as the latest proto descriptor for the message type.

Response

A successful response.

protobufDescriptor
object