# Update network card profile Update an existing network card profile with a different one. This affects the display at the next tokenization (after deleting the token and creating another one). **Notes**: * This is a PCI endpoint, use the https://gw-pci.pismolabs.io/cards-tokenization environment. * This endpoint takes an account token - an access token encoded with a Pismo account ID. # OpenAPI definition ```json { "openapi": "3.1.0", "info": { "title": "Card issuing - Tokenization", "description": "API endpoints for card tokenization.", "version": "1.0.0", "contact": { "name": "API Support", "url": "https://developers.pismo.io/support" }, "license": { "name": "Copyright Pismo" } }, "servers": [ { "url": "https://gw-pci.pismolabs.io/cards-tokenization", "description": "PCI API server for testing" }, { "url": "https://pci.pismolabs.io/cards-tokenization", "description": "Sandbox API server for testing" } ], "tags": [ { "name": "Network card profile", "description": "Network card profile endpoints" } ], "components": { "parameters": { "CardIDpath": { "name": "cardId", "in": "path", "schema": { "type": "string" }, "description": "Pismo card ID", "required": true }, "CustomerIDheader": { "name": "x-customer-id", "in": "header", "required": true, "schema": { "type": "integer" }, "description": "Customer ID" } }, "schemas": { "ErrorObject": { "type": "object", "description": "Standard error object", "properties": { "error_code": { "type": "string", "description": "Error code" }, "message": { "type": "string", "description": "Error message" } } }, "NetworkCardProfile": { "type": "string", "description": "Network card profile that you, the issuer, have already configured with the card network." }, "NetworkCardProfileObject": { "type": "object", "description": "Network card profile object", "required": [ "network_card_profile" ], "properties": { "network_card_profile": { "$ref": "#/components/schemas/NetworkCardProfile" }, "update_previous_tokens": { "type": "boolean", "description": "Should previously issued tokens on the network be updated? **ONLY** for VISA and Mastercard. Default is `false`.", "default": false } } } }, "securitySchemes": { "BearerAuth": { "type": "http", "scheme": "bearer", "description": "Account token - token encoded with a Pismo account ID. Tokens can expire quickly, which can result in a \"**401 Unauthorized**\" error.", "bearerFormat": "JWT" } }, "responses": { "400BadRequest": { "description": "Bad request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorObject" }, "examples": { "example-1": { "value": { "error_code": "ERR93836", "message": "Card profile can't be null" } } } } } }, "401Unauthorized": { "description": "Access token is missing or invalid", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorObject" }, "examples": { "example-1": { "value": { "error_code": "ERR9786", "message": "Access token is missing or invalid" } } } } } }, "500InternalServerError": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorObject" }, "examples": { "example-1": { "value": { "error_code": "ERR5446", "message": "Internal server error" } } } } } } } }, "security": [ { "BearerAuth": [] } ], "paths": { "/v1/cards/{cardId}/network-tokens/profile": { "parameters": [ { "$ref": "#/components/parameters/CardIDpath" } ], "put": { "summary": "Update network card profile", "operationId": "put-v1-cards-card-id-network-tokens-profile", "description": "Update an existing network card profile with a different one. This affects the display at the next tokenization (after deleting the token and creating another one).\n\n**Notes**: \n * This is a PCI endpoint, use the https://gw-pci.pismolabs.io/cards-tokenization environment.\n * This endpoint takes an account token - an access token encoded with a Pismo account ID.\n", "tags": [ "Network card profile" ], "parameters": [ { "$ref": "#/components/parameters/CustomerIDheader" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NetworkCardProfileObject" }, "examples": { "example-1": { "value": { "network_card_profile": "XYZ-123" } } } } } }, "responses": { "204": { "description": "No Content" }, "400": { "$ref": "#/components/responses/400BadRequest" }, "401": { "$ref": "#/components/responses/401Unauthorized" }, "500": { "$ref": "#/components/responses/500InternalServerError" } } } } } } ```