Type alias RestObjectOperationCounterCreateWithObjectId

RestObjectOperationCounterCreateWithObjectId: RestObjectOperationBase & {
    counterCreateWithObjectId: {
        initialValue: string;
        nonce: string;
    };
    objectId: string;
}

Operation to create a new counter object with a client-generated object ID and an initial count value. Use generateObjectId to generate the object ID, nonce, and initial value needed for this operation.

Type declaration

  • counterCreateWithObjectId: {
        initialValue: string;
        nonce: string;
    }

    The counter creation parameters for a pre-computed object ID.

    • initialValue: string

      JSON-encoded string representation of the counterCreate object. For example: '{"count":0}'.

    • nonce: string

      Random string used to generate the object ID.

  • objectId: string

    The object ID for the new counter object. Use generateObjectId to generate this value along with the matching nonce and initial value.

Generated using TypeDoc