PUT api/v1/cards/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

Card
NameDescriptionTypeAdditional information
id

integer

Required

date_of_activation

date

None.

date_of_deactivation

date

None.

establishment

CodeListSystem

None.

number

string

None.

code

string

None.

name

string

None.

data

string

None.

charge_ids

string

None.

state

CodeListSystem

None.

state_name

string

None.

type

CodeListSystem

None.

deleted

boolean

Required

date_create

date

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "date_of_activation": "2026-02-08T14:08:53Z",
  "date_of_deactivation": "2026-02-08T14:08:53Z",
  "establishment": {
    "code": "sample string 1",
    "is_cabel": true,
    "id": 3,
    "name": "sample string 4"
  },
  "number": "sample string 2",
  "code": "sample string 3",
  "name": "sample string 4",
  "data": "sample string 5",
  "charge_ids": "sample string 6",
  "state": {
    "code": "sample string 1",
    "is_cabel": true,
    "id": 3,
    "name": "sample string 4"
  },
  "state_name": "sample string 4",
  "type": {
    "code": "sample string 1",
    "is_cabel": true,
    "id": 3,
    "name": "sample string 4"
  },
  "deleted": true,
  "date_create": "2026-02-08T14:08:53Z"
}

application/xml, text/xml

Sample:
<Card xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IO.Swagger.Models">
  <charge_ids>sample string 6</charge_ids>
  <code>sample string 3</code>
  <data>sample string 5</data>
  <date_create>2026-02-08T15:08:53.3289209+01:00</date_create>
  <date_of_activation>2026-02-08T15:08:53.3289209+01:00</date_of_activation>
  <date_of_deactivation>2026-02-08T15:08:53.3289209+01:00</date_of_deactivation>
  <deleted>true</deleted>
  <establishment>
    <id>3</id>
    <name>sample string 4</name>
    <code>sample string 1</code>
    <is_cabel>true</is_cabel>
  </establishment>
  <id>1</id>
  <name>sample string 4</name>
  <number>sample string 2</number>
  <state>
    <id>3</id>
    <name>sample string 4</name>
    <code>sample string 1</code>
    <is_cabel>true</is_cabel>
  </state>
  <state_name>sample string 4</state_name>
  <type>
    <id>3</id>
    <name>sample string 4</name>
    <code>sample string 1</code>
    <is_cabel>true</is_cabel>
  </type>
</Card>

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

Response Information

Resource Description

Result
NameDescriptionTypeAdditional information
messages

Collection of ResultMessage

None.

count_of_errors

integer

None.

id

Object

None.

name

string

None.

data

Object

None.

url

string

None.

text

string

None.

inner_exception

string

None.

Response Formats

application/json, text/json

Sample:
{
  "messages": [
    {
      "type": 1,
      "code": 1,
      "message": "sample string 1",
      "field": "sample string 2"
    },
    {
      "type": 1,
      "code": 1,
      "message": "sample string 1",
      "field": "sample string 2"
    }
  ],
  "count_of_errors": 1,
  "id": {},
  "name": "sample string 3",
  "data": {},
  "url": "sample string 5",
  "text": "sample string 6",
  "inner_exception": "sample string 7"
}

application/xml, text/xml

Sample:
<Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UP.Core.Data">
  <count_of_errors>1</count_of_errors>
  <data />
  <id />
  <inner_exception>sample string 7</inner_exception>
  <messages>
    <ResultMessage>
      <code>1</code>
      <field>sample string 2</field>
      <message>sample string 1</message>
      <type>1</type>
    </ResultMessage>
    <ResultMessage>
      <code>1</code>
      <field>sample string 2</field>
      <message>sample string 1</message>
      <type>1</type>
    </ResultMessage>
  </messages>
  <name>sample string 3</name>
  <text>sample string 6</text>
  <url>sample string 5</url>
</Result>