Accept TOS

POST /users/:user/accept_tos

When a user reads the terms of services (TOS), the time they accepted is saved

Examples

##

Request

POST /users/oNPpON/accept_tos
Example
$ curl -i -H Accept:"application/vnd.textus+jsonld" \
    -H Authorization:"Bearer {token}" \
    -X POST /users/oNPpON/accept_tos
    

Response

Status

200

Response Type

User

Example Body

{
  "@type": "User",
  "id": "/users/oNPpON",
  "@context": "/contexts/User.jsonld",
  "name": "Chuck Norris",
  "firstName": "Chuck",
  "lastName": "Norris",
  "email": "chuck@textus.example",
  "avatar": null,
  "hasPassword": false,
  "discarded": false,
  "memberships": {
    "@type": "hydra:Collection",
    "id": "/users/oNPpON/memberships",
    "@context": "/contexts/hydra:Collection.jsonld",
    "totalItems": 1,
    "members": [
      {
        "@type": "Membership",
        "id": "/users/oNPpON/memberships/wqyODPA",
        "@context": "/contexts/Membership.jsonld",
        "role": "admin",
        "user": "/users/oNPpON",
        "account": {
          "@type": "Account",
          "@context": "/contexts/Account.jsonld",
          "id": "/accounts/child_account",
          "name": "child_account",
          "slug": "child_account",
          "shortenedLinkDomain": "textus.textlink.us",
          "shortenedLinkPreviewUrl": "https:/textus.textlink.us/#​​​​​",
          "multiUser": false,
          "effectiveRole": "admin",
          "messagingRestricted": true,
          "type": "standard",
          "contactImport": "/child_account/contacts/import",
          "contacts": "/child_account/contacts",
          "conversationFilters": "/child_account/conversation_filters",
          "campaignFilters": "/child_account/campaign_filters",
          "contactFilters": "/child_account/contact_filters",
          "conversations": "/child_account/conversations/{phoneNumber}{?contactPhone}",
          "inbox": "/child_account/inbox",
          "campaigns": "/child_account/campaigns",
          "presignAttachment": "/child_account/attachments/sign",
          "presignContactImport": "/child_account/contacts/import/generate_signed_url",
          "presignMessageImport": "/child_account/messages/import/generate_signed_url",
          "contactPhones": "/child_account/contact_phones",
          "sendMessages": "/child_account/messages",
          "scheduleMessages": "/child_account/messages/schedule",
          "users": "/child_account/users",
          "navbar": "/navbar/child_account",
          "signedAvatarUrl": "/users/signed_avatar_url",
          "children": "/accounts/child_account/children",
          "analytics": "/accounts/my_account/analytics",
          "optOutAnalytics": "/my_account/opt_outs/analytics",
          "optOuts": "/my_account/opt_outs",
          "exportOptOuts": "/my_account/opt_outs/export",
          "optOutImport": "/my_account/opt_outs/upload",
          "presignOptOutImport": "/my_account/opt_outs/sign",
          "userSchema": "/textus/user_schema",
          "organizationAccount": null,
          "premiumSupportUrl": null,
          "adminUserSchema": null,
          "logo": null,
          "familyCount": 1,
          "childrenCount": 0,
          "featureFlags": {
            "whiteLabelEnabled": false,
            "hideAnalyticsExport": false,
            "bligeAddContactMatching": false,
            "billingPageWithCumulative": false,
            "campaignDailyOverages": false,
            "automatedSender": false,
            "accountConfigurationRework": false,
            "inboxContactsRedesign": false,
            "campaignsResponsiveness": false,
            "contactDeduplication2": false,
            "restoreContacts": false,
            "newContactSearch": false,
            "templatesMaintenance": false,
            "integrationsFrameworkFe": false,
            "settingsSidebarRedesign": false,
            "keywordAnswers": false
          },
          "signedWhitelabelUrl": "/accounts/signed_whitelabel_url",
          "phoneNumbers": [
            "(303) 555-1111"
          ],
          "integrations": "/my_account/integrations",
          "contactsEnabled": true,
          "settings": {
            "maxCampaignRecipients": {
              "value": 100,
              "locked": false,
              "setAtAccount": "/accounts/my_account",
              "lockedAtAccount": {
                "id": null,
                "name": null
              },
              "disabled": false
            },
            "dailyCampaignRecipients": {
              "value": 100,
              "locked": false,
              "setAtAccount": "/accounts/my_account",
              "lockedAtAccount": {
                "id": null,
                "name": null
              },
              "disabled": false
            },
            "conversationAutoCloseAfter": {
              "disabled": false,
              "locked": false,
              "lockedAtAccount": {
                "id": null,
                "name": null
              },
              "setAtAccount": "/accounts/my_account",
              "value": -1
            },
            "countryCode": {
              "setAtAccount": "/accounts/my_account",
              "disabled": false
            },
            "contactImportTarget": {
              "value": true,
              "locked": false,
              "setAtAccount": "/accounts/my_account",
              "lockedAtAccount": {
                "id": null,
                "name": null
              },
              "disabled": false
            },
            "unassignClosedConversationsAfter": {
              "setAtAccount": "/accounts/my_account",
              "disabled": false
            },
            "unassignOpenConversationsAfter": {
              "setAtAccount": "/accounts/my_account",
              "disabled": false
            },
            "forwardingNumberDisabled": {
              "setAtAccount": "/accounts/my_account",
              "disabled": false
            },
            "forwardingNumber": {
              "setAtAccount": "/accounts/my_account",
              "disabled": false
            },
            "inboundMmsDisabled": {
              "setAtAccount": "/accounts/my_account",
              "disabled": false
            },
            "outboundMmsDisabled": {
              "setAtAccount": "/accounts/my_account",
              "disabled": false
            },
            "stripInboundLinks": {
              "setAtAccount": "/accounts/my_account",
              "disabled": false
            },
            "stripOutboundLinks": {
              "setAtAccount": "/accounts/my_account",
              "disabled": false
            },
            "introMessages": {
              "setAtAccount": "/accounts/my_account",
              "disabled": false
            },
            "officeHours": {
              "setAtAccount": "/accounts/my_account",
              "disabled": false
            },
            "campaignDeliveryCutoffTime": {
              "setAtAccount": "/accounts/my_account",
              "disabled": false
            },
            "campaignDeliveryCutoffTimeEnabled": {
              "setAtAccount": "/accounts/my_account",
              "disabled": false
            },
            "timeZone": {
              "setAtAccount": "/accounts/my_account",
              "disabled": false
            },
            "avaloId": {
              "setAtAccount": "/accounts/my_account",
              "disabled": false
            },
            "voiceEnabled": {
              "setAtAccount": "/accounts/my_account",
              "disabled": false
            },
            "conversationExportsEnabled": {
              "setAtAccount": "/accounts/my_account",
              "disabled": false
            },
            "logo": {
              "disabled": false,
              "setAtAccount": "/accounts/my_account"
            },
            "mobileLogo": {
              "disabled": false,
              "setAtAccount": "/accounts/my_account"
            },
            "primaryColor": {
              "setAtAccount": "/accounts/my_account",
              "disabled": false
            },
            "secondaryColor": {
              "setAtAccount": "/accounts/my_account",
              "disabled": false
            },
            "tertiaryColor": {
              "setAtAccount": "/accounts/my_account",
              "disabled": false
            },
            "outboundMessageColor": {
              "setAtAccount": "/accounts/my_account",
              "disabled": false
            },
            "accountImageUrl": {
              "setAtAccount": "/accounts/my_account",
              "disabled": false
            },
            "sharedOptOutsTarget": {
              "setAtAccount": "/accounts/my_account",
              "disabled": false
            },
            "customHelpMessage": {
              "setAtAccount": "/accounts/my_account",
              "disabled": false
            },
            "customOptOutMessage": {
              "setAtAccount": "/accounts/my_account",
              "disabled": false
            },
            "legalEntity": {
              "setAtAccount": "/accounts/my_account",
              "disabled": false
            },
            "appendedMessageDefaults": {
              "setAtAccount": "/accounts/my_account",
              "disabled": false
            },
            "conversationAppendedMessages": {
              "setAtAccount": "/accounts/my_account",
              "disabled": false
            },
            "campaignAppendedMessages": {
              "setAtAccount": "/accounts/my_account",
              "disabled": false
            },
            "autoReplyMessageEnabled": {
              "setAtAccount": "/accounts/my_account",
              "disabled": false
            },
            "autoReplyMessage": {
              "setAtAccount": "/accounts/my_account",
              "disabled": false
            },
            "companyName": {
              "disabled": false,
              "setAtAccount": "/accounts/my_account"
            },
            "companyFooter": {
              "disabled": false,
              "setAtAccount": "/accounts/my_account"
            },
            "product": {
              "disabled": false,
              "setAtAccount": "/accounts/my_account"
            },
            "supportLink": {
              "disabled": false,
              "setAtAccount": "/accounts/my_account"
            },
            "preferredDomain": {
              "disabled": false,
              "setAtAccount": "/accounts/my_account",
              "value": "www.example.com",
              "locked": false,
              "lockedAtAccount": {
                "id": null,
                "name": null
              }
            },
            "email": {
              "disabled": false,
              "setAtAccount": "/accounts/my_account"
            },
            "resellerId": {
              "disabled": false,
              "setAtAccount": "/accounts/my_account"
            },
            "registeredLinks": {
              "disabled": false,
              "setAtAccount": "/accounts/my_account"
            },
            "exclusionTimeEnabled": {
              "disabled": false,
              "setAtAccount": "/accounts/my_account"
            },
            "exclusionTime": {
              "disabled": false,
              "setAtAccount": "/accounts/my_account"
            },
            "conversationMaxMessageLength": {
              "disabled": false,
              "setAtAccount": "/accounts/my_account",
              "value": 480,
              "locked": false,
              "lockedAtAccount": {
                "id": null,
                "name": null
              }
            },
            "campaignMaxMessageLength": {
              "disabled": false,
              "setAtAccount": "/accounts/my_account",
              "value": 480,
              "locked": false,
              "lockedAtAccount": {
                "id": null,
                "name": null
              }
            },
            "mmsDisabled": {
              "disabled": false,
              "setAtAccount": "/accounts/my_account"
            },
            "messagingManuallyDisabled": {
              "disabled": false,
              "setAtAccount": "/accounts/my_account"
            },
            "automationKeywordMaxKeywordLimit": {
              "disabled": false,
              "setAtAccount": "/accounts/my_account",
              "value": 100,
              "locked": false,
              "lockedAtAccount": {
                "id": null,
                "name": null
              }
            },
            "accountNameChangeDisabled": {
              "disabled": false,
              "setAtAccount": "/accounts/my_account"
            },
            "automatedSenderId": {
              "disabled": false,
              "setAtAccount": "/accounts/my_account"
            }
          },
          "hasCumulativePlan": false
        }
      }
    ]
  },
  "automatedActor": false,
  "settings": {
    "customSettings": {}
  },
  "uiConfig": {},
  "featureFlags": {},
  "signature": {
    "@type": "Signature",
    "id": "/users/oNPpON/signature",
    "@context": "/contexts/Signature.jsonld",
    "content": "Chuck Norris"
  },
  "savedReplies": "users/oNPpON/saved_replies",
  "hasSubAccounts": false,
  "topLevelAccounts": [
    "/accounts/my_account"
  ],
  "tosAcceptedAt": "2020-03-03T22:13:20.000000Z",
  "gettingStartedElements": {
    "@type": "hydra:Collection",
    "@context": "/contexts/hydra:Collection.jsonld",
    "id": "/getting_started",
    "members": [
      {
        "@type": "GettingStartedElement",
        "@context": "/contexts/GettingStartedElement.jsonld",
        "id": "/getting_started/set_your_avatar",
        "elementType": "set_your_avatar",
        "record": null
      },
      {
        "@type": "GettingStartedElement",
        "@context": "/contexts/GettingStartedElement.jsonld",
        "id": "/getting_started/update_account_settings/my_account",
        "elementType": "update_account_settings",
        "record": "/accounts/my_account"
      }
    ],
    "totalItems": 2
  }
}

© 2024 TextUs