action rebilly_post_attachment { label: "Create an Attachment" description: "Create an Attachment.\n" provider: rebilly method: POST path: "/attachments" encoding: json output: { type: "object" required: ["fileId", "relatedId", "relatedType"] properties: { _embedded: { type: "array" description: "Any embedded objects available that are requested by the `expand` querystring parameter." items: { type: "object" } } _links: { type: "array" description: "The links related to resource." items: { type: "object" } } createdTime: { description: "Creation date/time." type: "object" } description: { type: "string" description: "The Attachment description." } fileId: { type: "string" description: "Linked File object id." } id: { type: "object" } name: { type: "string" description: "The Original Attachment name." } relatedId: { type: "string" description: "Linked object Id." } relatedType: { type: "string" description: "Linked object type." enum: ["customer", "dispute", "gateway-timeline-comment", "invoice", "organization", "payment", "plan", "product", "subscription", "transaction", "customer-timeline-comment", "transaction-timeline-comment", "order-timeline-comment"] } updatedTime: { description: "Latest update date/time." type: "object" } } } }