# Схема: get\_content\_draft: outputSchema

Source: <https://telegafirst.com/docs/schema-0dadaf5a00f6ff56ddfda2812570118abef48c21ee3704a99865dc86d62a1bf4>
Locale: ru
releaseGitSha: fc570c76ffc9cb87e2462d45b14f5c1b52fbaf0d
sourceContentDigest: 8b667284c2f5900a251392157611898552b2bdf4c1eff75dbe6898455e65c685
Version: 2

# Схема: get\_content\_draft: outputSchema

| Поле | Значение |
| - | - |
| $schema | "<https://json-schema.org/draft/2020-12/schema>" |
| additionalProperties | false |
| properties.bound.description | "Whether the content is attached to its item; true exactly when id is present." |
| properties.bound.type | "boolean" |
| properties.created\_at.format | "date-time" |
| properties.created\_at.pattern | "^(?:(?:\\\d\\\d\[2468]\[048]\|\\\d\\\d\[13579]\[26]\|\\\d\\\d0\[48]\|\[02468]\[048]00\|\[13579]\[26]00)-02-29\|\\\d{4}-(?:(?:0\[13578]\|1\[02])-(?:0\[1-9]\|\[12]\\\d\|3\[01])\|(?:0\[469]\|11)-(?:0\[1-9]\|\[12]\\\d\|30)\|(?:02)-(?:0\[1-9]\|1\\\d\|2\[0-8])))T(?:(?:\[01]\\\d\|2\[0-3]):\[0-5]\\\d:\[0-5]\\\d(?:\\\\.\\\d+)?(?:Z))$" |
| properties.created\_at.type | "string" |
| properties.draft\_handle.type | "string" |
| properties.failure.anyOf.0.additionalProperties | false |
| properties.failure.anyOf.0.description | "Why the write stopped: a public error code, and recovery when the request can be corrected and sent again." |
| properties.failure.anyOf.0.properties.code.enum | \["INVALID\_REQUEST","MALFORMED\_JSON","IDEMPOTENCY\_KEY\_REQUIRED","MISSING\_REQUIRED\_FIELD","INVALID\_API\_VERSION","INVALID\_PRICING\_QUOTE","MALFORMED\_IF\_MATCH","FIRST\_PAYMENT\_PURCHASE\_ZONE\_CONFLICT","FIRST\_PAYMENT\_PURCHASE\_ZONE\_REQUIRED","FIRST\_PAYMENT\_CURRENCY\_UNSUPPORTED","FIRST\_PAYMENT\_AMOUNT\_INVALID","FIRST\_PAYMENT\_AMOUNT\_BELOW\_MINIMUM","FIRST\_PAYMENT\_AMOUNT\_EXCEEDS\_STORAGE","UNAUTHORIZED","INVALID\_API\_KEY","INVALID\_JWT","EXPIRED\_JWT","INVALID\_REFRESH\_TOKEN","MFA\_REQUIRED","FORBIDDEN","INSUFFICIENT\_SCOPE","ACCOUNT\_DISABLED","WEBHOOK\_DISABLED","SUBSCRIPTION\_INACTIVE","PLATFORM\_OFFER\_ACCEPTANCE\_REQUIRED","NO\_ACTIVE\_BOT","PUBLISHABLE\_KEY\_NOT\_ALLOWED","PLAN\_UPGRADE\_REQUIRED","NOT\_FOUND","RESOURCE\_NOT\_FOUND","SESSION\_NOT\_FOUND","ORDER\_NOT\_FOUND","USER\_NOT\_FOUND","PRODUCT\_NOT\_FOUND","PAYMENT\_NOT\_FOUND","EXPORT\_NOT\_FOUND","CART\_NOT\_FOUND","DIALOG\_NOT\_FOUND","REPLY\_TARGET\_NOT\_FOUND","TOOL\_NOT\_FOUND","SLUG\_TAKEN","SLUG\_IMMUTABLE","UNPAID\_BOT\_LIMIT","ONBOARDING\_BUSY","ONBOARDING\_STEP\_OUT\_OF\_ORDER","BOT\_ALREADY\_CONNECTED","BOT\_RESERVED","BOT\_SETTINGS\_INCOMPLETE","GROUPS\_ALREADY\_BOUND","ACTIVE\_SUBSCRIPTION\_EXISTS","CONFLICT","SITE\_BUNDLE\_STALE","SITE\_SOURCE\_FETCH\_PENDING","IDEMPOTENCY\_CONFLICT","IDEMPOTENCY\_KEY\_IN\_FLIGHT","IDEMPOTENCY\_KEY\_FAILED","EXTERNAL\_ORDER\_REF\_CONFLICT","ORDER\_NOT\_LINKABLE","SESSION\_ALREADY\_APPROVED","WEBHOOK\_URL\_CONFLICT","PRICE\_CHANGED","ORDER\_ITEM\_VERSION\_CONFLICT","ORDER\_ALREADY\_PAID","ORDER\_CLOSED","ORDER\_BOUND\_TO\_BOOKING","CART\_INACTIVE","DRAFT\_NOT\_PENDING","TENANT\_ARCHIVED","VARIANT\_KEY\_IMMUTABLE","VARIANT\_KEY\_REUSED","CATEGORY\_HAS\_CHILDREN","EVENT\_SEATS\_BELOW\_HELD","ORDER\_NOT\_REFRESHABLE","ORDER\_ALREADY\_LINKED","DUPLICATE\_ORDER","SUBSCRIPTION\_UPGRADE\_REFUSED","ACQUISITION\_REJECTED","PLATFORM\_TARGET\_UNRESOLVED","ORDER\_LOCK\_CONTENDED","QUEST\_PRODUCT\_FREE\_TEST\_PRICE\_REQUIRED","FIRST\_PAYMENT\_PRODUCT\_CHANGED","FIRST\_PAYMENT\_CURRENT\_PROVIDER\_REQUIRED","FIRST\_PAYMENT\_EXECUTION\_ALREADY\_ACCEPTED","FIRST\_PAYMENT\_EXECUTION\_MISMATCH","FIRST\_PAYMENT\_PREPARATION\_CHANGED","FIRST\_PAYMENT\_PROVIDER\_CHANGED","FIRST\_PAYMENT\_INFRASTRUCTURE\_REQUIRED","FIRST\_PAYMENT\_TEST\_PRODUCT\_REQUIRED","FIRST\_PAYMENT\_PROVIDER\_UNAVAILABLE","FIRST\_PAYMENT\_DELIVERED\_TEST\_REQUIRED","ONBOARDING\_JOURNEY\_NOT\_READY","ONBOARDING\_FIRST\_PAYMENT\_NOT\_READY","ONBOARDING\_JOURNEY\_ALREADY\_COMPLETED","REPLACE\_IN\_PROGRESS","DIALOGS\_SWITCHED\_OFF","MEDIA\_PREPARING","MEDIA\_UNAVAILABLE","REPLY\_BATCH\_DUPLICATE\_RECIPIENT","REPLY\_BATCH\_PAYLOAD\_TOO\_LARGE","REPLY\_BATCH\_USER\_WROTE\_AFTER\_PREPARE","BOT\_TOKEN\_REVOKED","STOCK\_EXHAUSTED","PURCHASE\_LIMIT\_REACHED","CART\_SCENARIO\_CONFLICT","DELIVERY\_QUOTE\_PENDING","SESSION\_EXPIRED","APPROVAL\_CODE\_EXPIRED","PREPARED\_SCENARIO\_UNAVAILABLE","INTENT\_EXPIRED","PRECONDITION\_FAILED","BOT\_CONNECTION\_NOT\_READY","ETAG\_STALE","ACTIVE\_BOT\_CHANGED","PREPARED\_SCENARIO\_TENANT\_CHANGED","PREPARED\_SCENARIO\_MISMATCH","ITEM\_COUNT\_EXCEEDED","PAYLOAD\_TOO\_LARGE","SLUG\_INVALID","INVALID\_BOT\_TOKEN","SG\_NOT\_FORUM","SG\_BIND\_LINK\_INVALID","SG\_BIND\_NOT\_OWNER","SG\_BIND\_BOT\_RIGHTS\_MISSING","SG\_ALREADY\_BOUND","SG\_BIND\_ROLE\_BOUND","SA\_NOT\_MEMBER","SA\_NOT\_ADMIN","SA\_RIGHTS\_MISSING","SA\_ANONYMOUS","PAYMENT\_TAX\_PROFILE\_MISSING","VALIDATION\_ERROR","VALIDATION\_FAILED","IDEMPOTENCY\_KEY\_MISMATCH","ZONE\_REQUIRED","SITE\_PATH\_OUTSIDE\_PUBLISHABLE\_PREFIX","SITE\_PATH\_RESERVED","SITE\_CONSENT\_BANNER\_INCOMPLETE","SITE\_CONSENT\_BANNER\_HAS\_SCRIPT","SITE\_PRIVACY\_COOKIE\_SECTION\_MISSING","SITE\_TRACKER\_NOT\_GATEABLE","SITE\_INVITE\_PAGE\_REFERRAL\_SCRIPT\_MISSING","SITE\_INVITE\_PAGE\_BOT\_LINK\_MISSING","SITE\_INVITE\_PAGE\_BOT\_LINK\_FALLBACK\_MISSING","INVALID\_PROVIDER\_CURRENCY","PROVIDER\_NOT\_CONFIGURED","CATALOG\_FIELD\_READ\_ONLY","MEDIA\_ABORTED","MEDIA\_MAGIC\_MISMATCH","MEDIA\_MANIFEST\_CONFLICT","MEDIA\_OUTCOME\_CONFLICT","MEDIA\_SIZE\_MISMATCH","MEDIA\_SLOT\_NOT\_FOUND","CATALOG\_BOOKING\_CONFIG\_INVALID","CATALOG\_BOOKING\_RESOURCE\_NOT\_FOUND","TEXT\_TOO\_LONG","INVALID\_BUTTON\_CONFIG","INVALID\_MEDIA","INVALID\_SCOPE","INVALID\_CURSOR","INVALID\_FILTER","LIMIT\_EXCEEDED","EXPORT\_MAX\_ROWS\_EXCEEDED","TOKEN\_PASSTHROUGH\_FORBIDDEN","AUDIENCE\_MISMATCH","INVALID\_OAUTH\_STATE","INVALID\_OAUTH\_REDIRECT\_URI","ITEMS\_REQUIRED","VARIANTS\_NOT\_AVAILABLE","INVALID\_QUANTITY","MIXED\_CURRENCY","NO\_COMMON\_PAYMENT\_PROVIDER","SINGLETON\_ORDER\_REQUIRED","MIXED\_PARTNER\_RATES","PRODUCT\_NOT\_CART\_ELIGIBLE","OPTION\_UNAVAILABLE","QUANTITY\_LIMIT","OUTSIDE\_WINDOW","MERGE\_REJECTED","DELIVERY\_ADDRESS\_REQUIRED","POSTAL\_CODE\_REQUIRED","INVALID\_DELIVERY\_ADDRESS","PAYMENT\_PROVIDERS\_UNAVAILABLE","PAYMENT\_LINKS\_UNAVAILABLE","FISCAL\_PROVIDER\_BASIS\_UNSUPPORTED","MEETING\_PROVIDER\_NOT\_CONNECTED","MEETING\_PROVIDER\_UNAVAILABLE","INVALID\_INPUT","FAILED\_PRECONDITION","FORM\_REDIRECT\_HOST\_NOT\_ALLOWED","SITE\_HTML\_TAG\_TOO\_LARGE","SITE\_VIDEO\_TOO\_LARGE","SITE\_BUNDLE\_TOO\_LARGE","SITE\_TOO\_MANY\_FILES","MEDIA\_SOURCE\_NOT\_ALLOWED","MEDIA\_SOURCE\_UNAVAILABLE","MEDIA\_SOURCE\_REDIRECT\_REFUSED","MEDIA\_MIME\_MISMATCH","MEDIA\_LENGTH\_REQUIRED","MEDIA\_TOO\_LARGE","MEDIA\_DATA\_URI\_TOO\_LARGE","MEDIA\_BATCH\_TOO\_LARGE","MEDIA\_TOO\_MANY\_FILES","MEDIA\_TRANSFER\_TIMEOUT","MEDIA\_METHOD\_UNSUPPORTED","CONTENT\_TOPIC\_NOT\_CONFIGURED","CONTENT\_INVALID\_HTML","CONTENT\_TOO\_LONG","CONTENT\_SOURCE\_UNREADABLE","CONTENT\_PUBLICATION\_UNCONFIRMED","SITE\_NUDGE\_PAGE\_NOT\_ELIGIBLE","SITE\_NUDGE\_DELAY\_OUT\_OF\_RANGE","SITE\_NUDGE\_STEP\_NOT\_FOUND","SITE\_NUDGE\_GOAL\_LINK\_NOT\_FOUND","SITE\_NUDGE\_AI\_NOT\_ON\_PLAN","SITE\_NUDGE\_AI\_PROMPT\_REQUIRED","SITE\_GATE\_FILE\_RETIRED","SITE\_ACCESS\_RULE\_INVALID","SITE\_ACCESS\_CATALOG\_NOT\_FOUND","SITE\_ACCESS\_CATALOG\_NOT\_SUBSCRIPTION","SITE\_ACCESS\_CHANNEL\_NOT\_CONNECTED","SITE\_ACCESS\_SAVED\_SEGMENT\_NOT\_FOUND","SITE\_ACCESS\_SEGMENT\_INVALID","SITE\_ACCESS\_RULE\_LIMIT","SITE\_PASSWORD\_NOT\_FOUND","SITE\_PASSWORD\_IN\_USE","SITE\_PASSWORD\_TOO\_SHORT","SITE\_PASSWORD\_LIMIT","SITE\_ACCESS\_LOGIN\_PATH\_GATED","SITE\_ACCESS\_LOGIN\_PATH\_WITHOUT\_PASSWORD","BOT\_PROFILE\_PHOTO\_TYPE","BOT\_PROFILE\_PHOTO\_TOO\_LARGE","REFERRAL\_GOAL\_TARGET\_UNAVAILABLE","PREPARED\_ARGUMENTS\_CHANGED","PREPARED\_TOOL\_MISMATCH","WELCOME\_MARKUP\_UNSUPPORTED","WELCOME\_TOO\_LONG","VOICE\_UNKNOWN","VOICE\_PARAM\_INVALID","VOICE\_SETTING\_LINE\_INVALID","VOICE\_SETTING\_CONFLICT","SITE\_LEGAL\_REQUIRED\_LINKS\_MISSING","CHAIN\_STEP\_TOO\_MANY\_TRANSITIONS","LINE\_LIMIT\_EXCEEDED","RECURRING\_CONSENT\_REQUIRED","DELIVERY\_TAX\_PROFILE\_INCOMPLETE","VARIANT\_LIMIT\_EXCEEDED","PRICING\_RULE\_REFERENCE\_UNKNOWN","PROMO\_CODE\_NOT\_FOUND","PROMO\_CODE\_EXPIRED","PROMO\_CODE\_USAGE\_EXHAUSTED","PROMO\_CODE\_NOT\_APPLICABLE","CATALOG\_PUBLICATION\_MODE\_INCOMPATIBLE","PRECONDITION\_REQUIRED","PRICING\_QUOTE\_REQUIRED","ETAG\_REQUIRED","CATALOG\_UNAVAILABLE","CATALOG\_LOCK\_ORDER","UNSUPPORTED\_QUOTE\_CURRENCY","PREPARATION\_REQUIRED","PREPARED\_SECRETS\_REQUIRED","RATE\_LIMIT\_EXCEEDED","EXPORT\_LIMIT\_EXCEEDED","REFRESH\_LIMIT\_EXCEEDED","RATE\_LIMIT\_UNAVAILABLE","MINT\_QUOTA\_EXCEEDED","HOLD\_LIMIT\_REACHED","INTERNAL\_ERROR","SERVICE\_UNAVAILABLE","PRICING\_UNAVAILABLE","MINT\_QUOTA\_UNAVAILABLE","REPLY\_SEND\_FAILED"] |
| properties.failure.anyOf.0.properties.code.type | "string" |
| properties.failure.anyOf.0.properties.recovery.type | "string" |
| properties.failure.anyOf.0.required | \["code"] |
| properties.failure.anyOf.0.type | "object" |
| properties.failure.anyOf.1.type | "null" |
| properties.id.anyOf.0.maximum | 2147483647 |
| properties.id.anyOf.0.minimum | 1 |
| properties.id.anyOf.0.type | "integer" |
| properties.id.anyOf.1.type | "null" |
| properties.media\_refs.items.additionalProperties | false |
| properties.media\_refs.items.properties.caption.maxLength | 1024 |
| properties.media\_refs.items.properties.caption.type | "string" |
| properties.media\_refs.items.properties.caption\_entities.items.additionalProperties | false |
| properties.media\_refs.items.properties.caption\_entities.items.properties.custom\_emoji\_id.maxLength | 32 |
| properties.media\_refs.items.properties.caption\_entities.items.properties.custom\_emoji\_id.minLength | 1 |
| properties.media\_refs.items.properties.caption\_entities.items.properties.custom\_emoji\_id.type | "string" |
| properties.media\_refs.items.properties.caption\_entities.items.properties.language.type | "string" |
| properties.media\_refs.items.properties.caption\_entities.items.properties.length.exclusiveMinimum | 0 |
| properties.media\_refs.items.properties.caption\_entities.items.properties.length.maximum | 9007199254740991 |
| properties.media\_refs.items.properties.caption\_entities.items.properties.length.type | "integer" |
| properties.media\_refs.items.properties.caption\_entities.items.properties.offset.maximum | 9007199254740991 |
| properties.media\_refs.items.properties.caption\_entities.items.properties.offset.minimum | 0 |
| properties.media\_refs.items.properties.caption\_entities.items.properties.offset.type | "integer" |
| properties.media\_refs.items.properties.caption\_entities.items.properties.type.enum | \["mention","hashtag","cashtag","bot\_command","url","email","phone\_number","bold","italic","underline","strikethrough","spoiler","blockquote","expandable\_blockquote","code","pre","text\_link","text\_mention","custom\_emoji"] |
| properties.media\_refs.items.properties.caption\_entities.items.properties.type.type | "string" |
| properties.media\_refs.items.properties.caption\_entities.items.properties.url.type | "string" |
| properties.media\_refs.items.properties.caption\_entities.items.properties.user.additionalProperties | false |
| properties.media\_refs.items.properties.caption\_entities.items.properties.user.properties.first\_name.type | "string" |
| properties.media\_refs.items.properties.caption\_entities.items.properties.user.properties.id.pattern | "^-?\\\d+$" |
| properties.media\_refs.items.properties.caption\_entities.items.properties.user.properties.id.type | "string" |
| properties.media\_refs.items.properties.caption\_entities.items.properties.user.properties.last\_name.type | "string" |
| properties.media\_refs.items.properties.caption\_entities.items.properties.user.properties.username.type | "string" |
| properties.media\_refs.items.properties.caption\_entities.items.properties.user.required | \["id"] |
| properties.media\_refs.items.properties.caption\_entities.items.properties.user.type | "object" |
| properties.media\_refs.items.properties.caption\_entities.items.required | \["type","offset","length"] |
| properties.media\_refs.items.properties.caption\_entities.items.type | "object" |
| properties.media\_refs.items.properties.caption\_entities.type | "array" |
| properties.media\_refs.items.properties.caption\_html.maxLength | 16384 |
| properties.media\_refs.items.properties.caption\_html.minLength | 1 |
| properties.media\_refs.items.properties.caption\_html.type | "string" |
| properties.media\_refs.items.properties.expected\_size\_bytes.exclusiveMinimum | 0 |
| properties.media\_refs.items.properties.expected\_size\_bytes.maximum | 4294967296 |
| properties.media\_refs.items.properties.expected\_size\_bytes.type | "integer" |
| properties.media\_refs.items.properties.generated\_file\_name.maxLength | 255 |
| properties.media\_refs.items.properties.generated\_file\_name.minLength | 1 |
| properties.media\_refs.items.properties.generated\_file\_name.type | "string" |
| properties.media\_refs.items.properties.kind.enum | \["voice","audio","video\_note"] |
| properties.media\_refs.items.properties.kind.type | "string" |
| properties.media\_refs.items.properties.media\_ref.maxLength | 512 |
| properties.media\_refs.items.properties.media\_ref.pattern | "^media-ingress\\\\/v1\\\\/\[a-f0-9]{64}\\\\/\[A-Za-z0-9\_-]{16,128}\\\\/objects\\\\/\[a-z]\[a-z0-9-]{0,63}\\\\/\[a-f0-9]{64}\\\\/\[a-f0-9]{24}\\\\.blob$" |
| properties.media\_refs.items.properties.media\_ref.type | "string" |
| properties.media\_refs.items.properties.mime\_type.maxLength | 255 |
| properties.media\_refs.items.properties.mime\_type.minLength | 1 |
| properties.media\_refs.items.properties.mime\_type.type | "string" |
| properties.media\_refs.items.properties.sha256.pattern | "^\[0-9a-f]{64}$" |
| properties.media\_refs.items.properties.sha256.type | "string" |
| properties.media\_refs.items.properties.type.enum | \["photo","video","document"] |
| properties.media\_refs.items.properties.type.type | "string" |
| properties.media\_refs.items.required | \["type","media\_ref","expected\_size\_bytes","sha256","mime\_type"] |
| properties.media\_refs.items.type | "object" |
| properties.media\_refs.type | "array" |
| properties.payload\_mode.enum | \["ready\_message","source\_link"] |
| properties.payload\_mode.type | "string" |
| properties.published\_message\_ids.items.maxLength | 128 |
| properties.published\_message\_ids.items.minLength | 1 |
| properties.published\_message\_ids.items.type | "string" |
| properties.published\_message\_ids.type | "array" |
| properties.source.enum | \["crm","hub\_api","onboarding"] |
| properties.source.type | "string" |
| properties.source\_url.type | \["string","null"] |
| properties.status.enum | \["pending","publishing","published","failed","cancelled"] |
| properties.status.type | "string" |
| properties.target\_topic.enum | \["catalog","order\_statuses","marketing","broadcasts","message\_chains","events","resources"] |
| properties.target\_topic.type | "string" |
| properties.text.type | \["string","null"] |
| properties.updated\_at.format | "date-time" |
| properties.updated\_at.pattern | "^(?:(?:\\\d\\\d\[2468]\[048]\|\\\d\\\d\[13579]\[26]\|\\\d\\\d0\[48]\|\[02468]\[048]00\|\[13579]\[26]00)-02-29\|\\\d{4}-(?:(?:0\[13578]\|1\[02])-(?:0\[1-9]\|\[12]\\\d\|3\[01])\|(?:0\[469]\|11)-(?:0\[1-9]\|\[12]\\\d\|30)\|(?:02)-(?:0\[1-9]\|1\\\d\|2\[0-8])))T(?:(?:\[01]\\\d\|2\[0-3]):\[0-5]\\\d:\[0-5]\\\d(?:\\\\.\\\d+)?(?:Z))$" |
| properties.updated\_at.type | "string" |
| required | \["draft\_handle","target\_topic","source","payload\_mode","text","media\_refs","source\_url","status","bound","id","published\_message\_ids","failure","created\_at","updated\_at"] |
| type | "object" |
