POST api/users/me/lists/add

This method should be used to add one or more properties to one or more custom lists at the same time

Requires Authorization!

Request Information

URI Parameters

None.

Body Parameters

Instance of

AddUserPropertiesToListsBindingModel
NameDescriptionTypeAdditional information
Properties

Collection of integer

Required

ListIds

Collection of integer

Required

Request Formats

application/json, text/json

Sample:
{
  "properties": [
    1,
    2
  ],
  "listIds": [
    1,
    2
  ]
}

text/html

Sample:
{"properties":[1,2],"listIds":[1,2]}

application/xml, text/xml

Sample:
<AddUserPropertiesToListsBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.WebModels.PropertyBinding">
  <ListIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </ListIds>
  <Properties xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </Properties>
</AddUserPropertiesToListsBindingModel>

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 'AddUserPropertiesToListsBindingModel'.

Response Information

Resource Description

UserPropertyList
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

Description

string

None.

CreatedDate

date

None.

UserId

integer

None.

User

AspNetUser

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "name": "sample string 2",
  "description": "sample string 3",
  "createdDate": "2025-05-20T14:32:34.0494445-05:00",
  "userId": 5,
  "user": {
    "id": 1,
    "accessFailedCount": 2,
    "email": "sample string 3",
    "emailConfirmed": true,
    "lockoutEnabled": true,
    "lockoutEndDateUtc": "2025-05-20T14:32:34.0494445-05:00",
    "passwordHash": "sample string 6",
    "phoneNumberConfirmed": true,
    "securityStamp": "sample string 8",
    "twoFactorEnabled": true,
    "userName": "sample string 10",
    "joinDate": "2025-05-20T14:32:34.0494445-05:00",
    "firstName": "sample string 12",
    "lastName": "sample string 13",
    "isSystemUser": true,
    "accountVerified": true,
    "acceptedTermsAndConditionsDate": "2025-05-20T14:32:34.0494445-05:00",
    "phoneNumber": "sample string 15",
    "roles": [],
    "claims": [],
    "logins": []
  }
}

text/html

Sample:
{"id":1,"name":"sample string 2","description":"sample string 3","createdDate":"2025-05-20T14:32:34.0494445-05:00","userId":5,"user":{"id":1,"accessFailedCount":2,"email":"sample string 3","emailConfirmed":true,"lockoutEnabled":true,"lockoutEndDateUtc":"2025-05-20T14:32:34.0494445-05:00","passwordHash":"sample string 6","phoneNumberConfirmed":true,"securityStamp":"sample string 8","twoFactorEnabled":true,"userName":"sample string 10","joinDate":"2025-05-20T14:32:34.0494445-05:00","firstName":"sample string 12","lastName":"sample string 13","isSystemUser":true,"accountVerified":true,"acceptedTermsAndConditionsDate":"2025-05-20T14:32:34.0494445-05:00","phoneNumber":"sample string 15","roles":[],"claims":[],"logins":[]}}

application/xml, text/xml

Sample:
<UserPropertyList xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.Entities">
  <Id xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.Entities.Core">1</Id>
  <CreatedDate>2025-05-20T14:32:34.0494445-05:00</CreatedDate>
  <Description>sample string 3</Description>
  <Name>sample string 2</Name>
  <User xmlns:d2p1="http://schemas.datacontract.org/2004/07/Ptd.Model.Entities.AuthEntities">
    <AccessFailedCount xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">2</AccessFailedCount>
    <Email xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 3</Email>
    <EmailConfirmed xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">true</EmailConfirmed>
    <Id xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">1</Id>
    <LockoutEnabled xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">true</LockoutEnabled>
    <LockoutEndDateUtc xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">2025-05-20T14:32:34.0494445-05:00</LockoutEndDateUtc>
    <PasswordHash xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 6</PasswordHash>
    <PhoneNumber xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 15</PhoneNumber>
    <PhoneNumberConfirmed xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">true</PhoneNumberConfirmed>
    <SecurityStamp xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 8</SecurityStamp>
    <TwoFactorEnabled xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">true</TwoFactorEnabled>
    <UserName xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 10</UserName>
    <d2p1:AcceptedTermsAndConditionsDate>2025-05-20T14:32:34.0494445-05:00</d2p1:AcceptedTermsAndConditionsDate>
    <d2p1:AccountVerified>true</d2p1:AccountVerified>
    <d2p1:FirstName>sample string 12</d2p1:FirstName>
    <d2p1:IsSystemUser>true</d2p1:IsSystemUser>
    <d2p1:JoinDate>2025-05-20T14:32:34.0494445-05:00</d2p1:JoinDate>
    <d2p1:LastName>sample string 13</d2p1:LastName>
  </User>
  <UserId>5</UserId>
</UserPropertyList>