|
712 | 712 | "types" |
713 | 713 | ] |
714 | 714 | }, |
| 715 | + "ContentUpdateRequest": { |
| 716 | + "type": "object", |
| 717 | + "description": "Content update request body", |
| 718 | + "properties": { |
| 719 | + "friendly_name": { |
| 720 | + "description": "User defined name of the content", |
| 721 | + "type": "string" |
| 722 | + }, |
| 723 | + "variables": { |
| 724 | + "description": "Key value pairs of variable name to value", |
| 725 | + "type": "object", |
| 726 | + "additionalProperties": { |
| 727 | + "type": "string" |
| 728 | + } |
| 729 | + }, |
| 730 | + "language": { |
| 731 | + "description": "Language code for the content", |
| 732 | + "type": "string" |
| 733 | + }, |
| 734 | + "types": { |
| 735 | + "$ref": "#/components/schemas/types" |
| 736 | + } |
| 737 | + }, |
| 738 | + "required": [ |
| 739 | + "types" |
| 740 | + ] |
| 741 | + }, |
715 | 742 | "types": { |
716 | 743 | "description": "Content types", |
717 | 744 | "type": "object", |
|
1429 | 1456 | } |
1430 | 1457 | ], |
1431 | 1458 | "operationId": "DeleteContent" |
| 1459 | + }, |
| 1460 | + "put": { |
| 1461 | + "description": "Update a Content resource", |
| 1462 | + "summary": "Update Content", |
| 1463 | + "requestBody": { |
| 1464 | + "required": true, |
| 1465 | + "content": { |
| 1466 | + "application/json": { |
| 1467 | + "schema": { |
| 1468 | + "$ref": "#/components/schemas/ContentUpdateRequest" |
| 1469 | + } |
| 1470 | + } |
| 1471 | + } |
| 1472 | + }, |
| 1473 | + "tags": [ |
| 1474 | + "Contentv1Content" |
| 1475 | + ], |
| 1476 | + "parameters": [ |
| 1477 | + { |
| 1478 | + "name": "Sid", |
| 1479 | + "in": "path", |
| 1480 | + "description": "The Twilio-provided string that uniquely identifies the Content resource to update.", |
| 1481 | + "schema": { |
| 1482 | + "type": "string", |
| 1483 | + "minLength": 34, |
| 1484 | + "maxLength": 34, |
| 1485 | + "pattern": "^HX[0-9a-fA-F]{32}$" |
| 1486 | + }, |
| 1487 | + "required": true |
| 1488 | + } |
| 1489 | + ], |
| 1490 | + "responses": { |
| 1491 | + "200": { |
| 1492 | + "content": { |
| 1493 | + "application/json": { |
| 1494 | + "schema": { |
| 1495 | + "$ref": "#/components/schemas/content.v1.content" |
| 1496 | + }, |
| 1497 | + "examples": { |
| 1498 | + "update": { |
| 1499 | + "value": { |
| 1500 | + "sid": "HXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", |
| 1501 | + "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", |
| 1502 | + "friendly_name": "", |
| 1503 | + "language": "en", |
| 1504 | + "variables": { |
| 1505 | + "name": "foo" |
| 1506 | + }, |
| 1507 | + "types": { |
| 1508 | + "twilio/text": { |
| 1509 | + "body": "Foo Bar Co is located at 39.7392, 104.9903" |
| 1510 | + }, |
| 1511 | + "twilio/location": { |
| 1512 | + "longitude": 104.9903, |
| 1513 | + "latitude": 39.7392, |
| 1514 | + "label": "Foo Bar Co" |
| 1515 | + } |
| 1516 | + }, |
| 1517 | + "url": "https://content.twilio.com/v1/Content/HXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", |
| 1518 | + "date_created": "2015-07-30T19:00:00Z", |
| 1519 | + "date_updated": "2015-07-30T19:00:00Z", |
| 1520 | + "links": { |
| 1521 | + "approval_create": "https://content.twilio.com/v1/Content/HXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ApprovalRequests/whatsapp", |
| 1522 | + "approval_fetch": "https://content.twilio.com/v1/Content/HXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ApprovalRequests" |
| 1523 | + } |
| 1524 | + } |
| 1525 | + } |
| 1526 | + } |
| 1527 | + } |
| 1528 | + }, |
| 1529 | + "headers": { |
| 1530 | + "Access-Control-Allow-Origin": { |
| 1531 | + "description": "Specify the origin(s) allowed to access the resource", |
| 1532 | + "schema": { |
| 1533 | + "type": "string" |
| 1534 | + }, |
| 1535 | + "example": "*" |
| 1536 | + }, |
| 1537 | + "Access-Control-Allow-Methods": { |
| 1538 | + "description": "Specify the HTTP methods allowed when accessing the resource", |
| 1539 | + "schema": { |
| 1540 | + "type": "string" |
| 1541 | + }, |
| 1542 | + "example": "POST, OPTIONS" |
| 1543 | + }, |
| 1544 | + "Access-Control-Allow-Headers": { |
| 1545 | + "description": "Specify the headers allowed when accessing the resource", |
| 1546 | + "schema": { |
| 1547 | + "type": "string" |
| 1548 | + }, |
| 1549 | + "example": "Content-Type, Authorization" |
| 1550 | + }, |
| 1551 | + "Access-Control-Allow-Credentials": { |
| 1552 | + "description": "Indicates whether the browser should include credentials", |
| 1553 | + "schema": { |
| 1554 | + "type": "boolean" |
| 1555 | + } |
| 1556 | + }, |
| 1557 | + "Access-Control-Expose-Headers": { |
| 1558 | + "description": "Headers exposed to the client", |
| 1559 | + "schema": { |
| 1560 | + "type": "string", |
| 1561 | + "example": "X-Custom-Header1, X-Custom-Header2" |
| 1562 | + } |
| 1563 | + } |
| 1564 | + }, |
| 1565 | + "description": "OK" |
| 1566 | + } |
| 1567 | + }, |
| 1568 | + "security": [ |
| 1569 | + { |
| 1570 | + "accountSid_authToken": [] |
| 1571 | + } |
| 1572 | + ], |
| 1573 | + "operationId": "UpdateContent" |
1432 | 1574 | } |
1433 | 1575 | }, |
1434 | 1576 | "/v1/Content": { |
|
0 commit comments