PUT 3dCartWebAPI/v1/Admins/{id}


This method is used to update a single admin record in the database. The {id} parameter specifies which admin record to update.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Admin Id

integer

Required

Body Parameters

A Json or XML object containing the admin

AdminPUT
NameDescriptionTypeAdditional information
AdminId

database reference = admins.id

integer

None.

Username

database reference = admins.username

string

String length: inclusive between 0 and 50

Email

database reference = admins.email

string

String length: inclusive between 0 and 255

Name

database reference = admins.name

string

String length: inclusive between 0 and 50

Password

database reference = admins.pass

string

String length: inclusive between 0 and 50

ExternalId

database reference = admins.alt_id

string

String length: inclusive between 0 and 50

AdminPermissionsList

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "AdminId": 1,
  "Username": "sample string 1",
  "Email": "sample string 2",
  "Name": "sample string 3",
  "Password": "sample string 4",
  "ExternalId": "sample string 5",
  "AdminPermissionsList": [
    1,
    2
  ]
}

application/xml, text/xml

Sample:
<Admin xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <AdminId>1</AdminId>
  <AdminPermissionsList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </AdminPermissionsList>
  <Email>sample string 2</Email>
  <ExternalId>sample string 5</ExternalId>
  <Name>sample string 3</Name>
  <Password>sample string 4</Password>
  <Username>sample string 1</Username>
</Admin>

Sample Request



Response Information

application/json, text/json

Sample:
[
  {
    "Key":"AdminId",
    "Value":"1234",
    "Status":"200",
    "Message":"updated successfully",
  }
]
							

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.