Develop > API calls > Container APIs > Update a container

Update a container

Updates an artifact container.

URI Method Parameters Returns
http://[host]:[port]/csa/api/container/{containerID} PUT
  • Container ID
  • body - a JSON representation of a service design container

200 - successful
400 - bad request
403 - not authorized

Example

The following URL was sent:

https://localhost:8444/csa/api/container/72A82AD399D64A1FADABE348AA59DB90

The following JSON was sent:

{   
  "name": "Updated Sample Container",   
  "description": "Updated Sample Container Description",
  "icon": "/csa/api/blobstore/Arrow_02_48.png?tag=library",
  "tags": [
    {"@self": "/csa/api/tag/8a81848d4d6cd612014d6fdee47f0036"}
],
"container_type": "topology_artifact_container"
}
}

The following JSON was returned:

{
 "@self":
"/csa/api/container/8a81848d4d6cd612014d7044313d00c1",
 "@type": "urn:x-hp:2012:software:cloud:data_model:metamodel",
 "@created": "2015-05-20T07:40:26.813Z",
 "@modified": "2015-05-20T07:40:26.813Z",
 "global_id": "8a81848d4d6cd612014d7044313d00c1",
 "name": "Updated Sample Container",
 "description": "Updated Sample Container Description",
 "icon": "/csa/api/blobstore/Arrow_02_48.png?tag=library",
 "ext": {
  "csa_name_key": "fb1e1294-6e5b-4323-a0cc-7414234c10a1",
  "csa_critical_system_object": false,
  "csa_artifact_container_type": "TOPOLOGY_DESIGN_BASED"
 },
 "container_type": "TOPOLOGY_ARTIFACT_CONTAINER",
 "tags": [
   {
    "@self": "/csa/api/tag/8a81848d4d6cd612014d6fdee47f0036",
    "@type": "urn:x-hp:2012:software:cloud:data_model:tag",
    "name": "Developer Desings",
    "description": "Developer Desings",
    "icon": "/csa/api/blobstore/other.png?tag=library",
    "color": "#ffffff",
    "scopes": [
     "TOPOLOGY_ARTIFACT_CONTAINER"
   ]
  }
 ]
}
}