POST Api/Use/ConsumeUse?catalogId={catalogId}&consumeDate={consumeDate}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
catalogId

string

Required

consumeDate

date

Required

Body Parameters

UserDTO
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

Username

string

None.

Password

string

None.

Email

string

None.

AccountId

globally unique identifier

None.

UserType

UserTypeDTO

None.

Products

Collection of ProductDTO

None.

FirstName

string

None.

LastName

string

None.

OneId

globally unique identifier

None.

VerificationDate

date

None.

VerificationCode

string

None.

ClientPublicKey

string

None.

SecurityToken

string

None.

CurrentUserId

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "id": "7c169e4e-f9bb-429a-a410-8316dc927b7e",
  "username": "sample string 2",
  "password": "sample string 3",
  "email": "sample string 4",
  "accountId": "fc136041-a3b5-4b92-bf4b-fec036301889",
  "userType": {
    "id": 1,
    "name": "sample string 2",
    "description": "sample string 3"
  },
  "products": [
    {
      "id": 1,
      "portal": {
        "id": 1,
        "name": "sample string 2",
        "description": "sample string 3",
        "clientPublicKey": "sample string 4",
        "securityToken": "sample string 5",
        "currentUserId": "3ebfc245-7450-4190-b4b9-1f29f8f28d4d"
      },
      "tool": {
        "id": 1,
        "name": "sample string 2",
        "shortName": "sample string 3",
        "logoUrl": "sample string 4",
        "order": 5,
        "description": "sample string 6",
        "author": "sample string 7",
        "ageRange": "sample string 8",
        "clientPublicKey": "sample string 9",
        "securityToken": "sample string 10",
        "currentUserId": "a61f190b-3408-40b5-b05b-cfcbfa8b1048"
      },
      "clientPublicKey": "sample string 2",
      "securityToken": "sample string 3",
      "currentUserId": "709037c2-4996-4dc0-8ee9-c7f4374f4751"
    },
    {
      "id": 1,
      "portal": {
        "id": 1,
        "name": "sample string 2",
        "description": "sample string 3",
        "clientPublicKey": "sample string 4",
        "securityToken": "sample string 5",
        "currentUserId": "3ebfc245-7450-4190-b4b9-1f29f8f28d4d"
      },
      "tool": {
        "id": 1,
        "name": "sample string 2",
        "shortName": "sample string 3",
        "logoUrl": "sample string 4",
        "order": 5,
        "description": "sample string 6",
        "author": "sample string 7",
        "ageRange": "sample string 8",
        "clientPublicKey": "sample string 9",
        "securityToken": "sample string 10",
        "currentUserId": "a61f190b-3408-40b5-b05b-cfcbfa8b1048"
      },
      "clientPublicKey": "sample string 2",
      "securityToken": "sample string 3",
      "currentUserId": "709037c2-4996-4dc0-8ee9-c7f4374f4751"
    }
  ],
  "firstName": "sample string 6",
  "lastName": "sample string 7",
  "oneId": "4f283e53-aacf-44f9-9f71-19bbb3cf66a6",
  "verificationDate": "2024-11-21T05:19:48.9161651-05:00",
  "verificationCode": "sample string 9",
  "clientPublicKey": "sample string 10",
  "securityToken": "sample string 11",
  "currentUserId": "d768c9ed-d599-43a3-96d2-bdda968a72e8"
}

application/xml, text/xml

Sample:
<UserDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AccessManager.DTO">
  <ClientPublicKey>sample string 10</ClientPublicKey>
  <CurrentUserId>d768c9ed-d599-43a3-96d2-bdda968a72e8</CurrentUserId>
  <SecurityToken>sample string 11</SecurityToken>
  <AccountId>fc136041-a3b5-4b92-bf4b-fec036301889</AccountId>
  <Email>sample string 4</Email>
  <FirstName>sample string 6</FirstName>
  <Id>7c169e4e-f9bb-429a-a410-8316dc927b7e</Id>
  <LastName>sample string 7</LastName>
  <OneId>4f283e53-aacf-44f9-9f71-19bbb3cf66a6</OneId>
  <Password>sample string 3</Password>
  <Products>
    <ProductDTO>
      <ClientPublicKey>sample string 2</ClientPublicKey>
      <CurrentUserId>709037c2-4996-4dc0-8ee9-c7f4374f4751</CurrentUserId>
      <SecurityToken>sample string 3</SecurityToken>
      <Id>1</Id>
      <Portal>
        <ClientPublicKey>sample string 4</ClientPublicKey>
        <CurrentUserId>3ebfc245-7450-4190-b4b9-1f29f8f28d4d</CurrentUserId>
        <SecurityToken>sample string 5</SecurityToken>
        <Description>sample string 3</Description>
        <Id>1</Id>
        <Name>sample string 2</Name>
      </Portal>
      <Tool>
        <ClientPublicKey>sample string 9</ClientPublicKey>
        <CurrentUserId>a61f190b-3408-40b5-b05b-cfcbfa8b1048</CurrentUserId>
        <SecurityToken>sample string 10</SecurityToken>
        <AgeRange>sample string 8</AgeRange>
        <Author>sample string 7</Author>
        <Description>sample string 6</Description>
        <Id>1</Id>
        <LogoUrl>sample string 4</LogoUrl>
        <Name>sample string 2</Name>
        <Order>5</Order>
        <ShortName>sample string 3</ShortName>
      </Tool>
    </ProductDTO>
    <ProductDTO>
      <ClientPublicKey>sample string 2</ClientPublicKey>
      <CurrentUserId>709037c2-4996-4dc0-8ee9-c7f4374f4751</CurrentUserId>
      <SecurityToken>sample string 3</SecurityToken>
      <Id>1</Id>
      <Portal>
        <ClientPublicKey>sample string 4</ClientPublicKey>
        <CurrentUserId>3ebfc245-7450-4190-b4b9-1f29f8f28d4d</CurrentUserId>
        <SecurityToken>sample string 5</SecurityToken>
        <Description>sample string 3</Description>
        <Id>1</Id>
        <Name>sample string 2</Name>
      </Portal>
      <Tool>
        <ClientPublicKey>sample string 9</ClientPublicKey>
        <CurrentUserId>a61f190b-3408-40b5-b05b-cfcbfa8b1048</CurrentUserId>
        <SecurityToken>sample string 10</SecurityToken>
        <AgeRange>sample string 8</AgeRange>
        <Author>sample string 7</Author>
        <Description>sample string 6</Description>
        <Id>1</Id>
        <LogoUrl>sample string 4</LogoUrl>
        <Name>sample string 2</Name>
        <Order>5</Order>
        <ShortName>sample string 3</ShortName>
      </Tool>
    </ProductDTO>
  </Products>
  <UserType>
    <Description>sample string 3</Description>
    <Id>1</Id>
    <Name>sample string 2</Name>
  </UserType>
  <Username>sample string 2</Username>
  <VerificationCode>sample string 9</VerificationCode>
  <VerificationDate>2024-11-21T05:19:48.9161651-05:00</VerificationDate>
</UserDTO>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'UserDTO'.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>