Create or update an array of service specification

put

https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogManagement/v1/serviceSpecifications

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: array
Minimum Number of Items: 1
Maximum Number of Items: 50
Show Source
Nested Schema : ServiceSpecificationOracle
Title: ServiceSpecificationOracle
Match All
Show Source
  • ServiceSpecification
    Title: ServiceSpecification
    Discriminator: { "propertyName":"@type", "mapping":{ "ServiceSpecification":"#/components/schemas/ServiceSpecification", "ServiceSpecificationOracle":"#/components/schemas/ServiceSpecificationOracle" } }
    ServiceSpecification is a class that offers characteristics to describe a type of service. Functionally, it acts as a template by which Services may be instantiated. By sharing the same specification, these services would therefore share the same set of characteristics.
  • type
Nested Schema : ServiceSpecification
Type: object
Title: ServiceSpecification
Discriminator: @type

Discriminator Values

ServiceSpecification is a class that offers characteristics to describe a type of service. Functionally, it acts as a template by which Services may be instantiated. By sharing the same specification, these services would therefore share the same set of characteristics.
Show Source
Nested Schema : type
Type: object
Show Source
Nested Schema : ProjectRef
Type: object
Title: ProjectRef
Project Reference
Show Source
Back to Top

Response

Supported Media Types

200 Response

Your request is successful and the resources have been created or updated.
Body ()
Root Schema : schema
Type: array
Show Source
Nested Schema : ServiceSpecificationOracle
Title: ServiceSpecificationOracle
Match All
Show Source
  • ServiceSpecification
    Title: ServiceSpecification
    Discriminator: { "propertyName":"@type", "mapping":{ "ServiceSpecification":"#/components/schemas/ServiceSpecification", "ServiceSpecificationOracle":"#/components/schemas/ServiceSpecificationOracle" } }
    ServiceSpecification is a class that offers characteristics to describe a type of service. Functionally, it acts as a template by which Services may be instantiated. By sharing the same specification, these services would therefore share the same set of characteristics.
  • type
Nested Schema : ServiceSpecification
Type: object
Title: ServiceSpecification
Discriminator: @type

Discriminator Values

ServiceSpecification is a class that offers characteristics to describe a type of service. Functionally, it acts as a template by which Services may be instantiated. By sharing the same specification, these services would therefore share the same set of characteristics.
Show Source
Nested Schema : type
Type: object
Show Source
Nested Schema : ProjectRef
Type: object
Title: ProjectRef
Project Reference
Show Source

400 Response

Your request couldn't be processed because it contains missing or invalid information, such as a validation error on an input field, a missing required value, and so forth.
Body ()
Root Schema : schema
Type: array
Show Source
Nested Schema : Discriminator: @type
Type: object
Discriminator: @type

Discriminator Values

401 Response

Your request isn't authorized. The authentication credentials included with this request are missing or invalid.
Body ()
Root Schema : Error
Type: object
Title: Error
Show Source

404 Response

Your request includes a resource URI that doesn't exist.
Body ()
Root Schema : Error
Type: object
Title: Error
Show Source

405 Response

HTTP action specified in the request (DELETE, GET, POST, PUT) isn't supported for this request URI.
Body ()
Root Schema : Error
Type: object
Title: Error
Show Source

500 Response

The server encountered something unexpected that prevented it from completing the request.
Body ()
Root Schema : Error
Type: object
Title: Error
Show Source
Back to Top

Examples

The following example shows how to create or update an array of service specification by submitting a put request on the REST resource using cURL.

cURL Command

curl -u username:password -X PUT \ 'https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogManagement/v1/serviceSpecifications' -H 'Content-Type: application/json' -D @put_servicespecs.json | json_pp

Example of Request Body

The following shows an example of the request body.

[
{
    "id": "TelcoGSM_Service_001",
    "name": "TelcoGSM_Service_001",
    "@type": "ServiceSpecificationOracle",
    "lifecycleStatus": "In design",
    "version": "1.0",
    "description": "Service  description22 pacth it",
    "validFor": {
        "startDateTime": "2019-06-19T16:42:23.0Z",
        "endDateTime": "2022-08-19T16:42:23.0Z"
    },
    "project": {
        "id": "BulkDocProject",
        "name": "Bulk Doc Project"
    },
    "serviceSpecCharacteristic": [
        {
            "name": "ServiceSpecChar001",
            "description": "Test for service char",
            "validFor": {
                "startDateTime": "2019-06-19T16:42:23.0Z",
                "endDateTime": "2022-08-19T16:42:23.0Z"
            },
            "configurable": true,
            "valueType": "STRING",
            "extensible": false,
            "minCardinality": 0,
            "maxCardinality": 1,
            "serviceSpecCharacteristicValue": [
                {
                    "valueType": "STRING",
                    "isDefault": true,
                    "value": "Android Kitkat CATBURY",
                    "validFor": {
                        "startDateTime": "2019-06-19T16:42:23.0Z",
                        "endDateTime": "2022-08-19T16:42:23.0Z"
                    }
                }
            ]
        }
    ]
},
{
    "id": "TelcoGSM_Service_002",
    "name": "TelcoGSM_Service_002",
    "@type": "ServiceSpecificationOracle",
    "lifecycleStatus": "In design",
    "version": "1.0",
    "description": "Service  description22 pacth it",
    "validFor": {
        "startDateTime": "2019-06-19T16:42:23.0Z",
        "endDateTime": "2022-08-19T16:42:23.0Z"
    },
    "project": {
        "id": "BulkDocProject",
        "name": "Bulk Doc Project"
    },
    "serviceSpecCharacteristic": [
        {
            "name": "ServiceSpecChar001",
            "description": "Test for service char",
            "validFor": {
                "startDateTime": "2019-06-19T16:42:23.0Z",
                "endDateTime": "2022-08-19T16:42:23.0Z"
            },
            "configurable": true,
            "valueType": "STRING",
            "extensible": false,
            "minCardinality": 0,
            "maxCardinality": 1,
            "serviceSpecCharacteristicValue": [
                {
                    "valueType": "STRING",
                    "isDefault": true,
                    "value": "Android Kitkat CATBURY",
                    "validFor": {
                        "startDateTime": "2019-06-19T16:42:23.0Z",
                        "endDateTime": "2022-08-19T16:42:23.0Z"
                    }
                }
            ]
        }
    ]
}
]

Example of Response Body

The following shows an example of the response body.

[
    {
        "id": "TelcoGSM_Service_001",
        "name": "TelcoGSM_Service_001",
        "description": "Service  description22 pacth it",
        "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogManagement/v1/serviceSpecifications/TelcoGSM_Service_001",
        "version": "1.0",
        "lifecycleStatus": "In design",
        "isBundle": false,
        "@type": "ServiceSpecificationOracle",
        "validFor": {
            "startDateTime": "2019-06-19T16:42:23.0Z",
            "endDateTime": "2022-08-19T16:42:23.0Z"
        },
        "project": {
            "id": "BulkDocProject",
            "name": "Bulk Doc Project",
            "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/project/BulkDocProject"
        },
        "serviceSpecCharacteristic": [
            {
                "name": "ServiceSpecChar001",
                "description": "Test for service char",
                "valueType": "STRING",
                "extensible": false,
                "configurable": true,
                "minCardinality": 0,
                "maxCardinality": 1,
                "validFor": {
                    "startDateTime": "2019-06-19T16:42:23.0Z",
                    "endDateTime": "2022-08-19T16:42:23.0Z"
                },
                "serviceSpecCharacteristicValue": [
                    {
                        "isDefault": true,
                        "validFor": {
                            "startDateTime": "2019-06-19T16:42:23.0Z",
                            "endDateTime": "2022-08-19T16:42:23.0Z"
                        },
                        "valueType": "STRING",
                        "value": "Android Kitkat CATBURY"
                    }
                ]
            }
        ]
    },
    {
        "id": "TelcoGSM_Service_002",
        "name": "TelcoGSM_Service_002",
        "description": "Service  description22 pacth it",
        "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogManagement/v1/serviceSpecifications/TelcoGSM_Service_002",
        "version": "1.0",
        "lifecycleStatus": "In design",
        "isBundle": false,
        "@type": "ServiceSpecificationOracle",
        "validFor": {
            "startDateTime": "2019-06-19T16:42:23.0Z",
            "endDateTime": "2022-08-19T16:42:23.0Z"
        },
        "project": {
            "id": "BulkDocProject",
            "name": "Bulk Doc Project",
            "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/project/BulkDocProject"
        },
        "serviceSpecCharacteristic": [
            {
                "name": "ServiceSpecChar001",
                "description": "Test for service char",
                "valueType": "STRING",
                "extensible": false,
                "configurable": true,
                "minCardinality": 0,
                "maxCardinality": 1,
                "validFor": {
                    "startDateTime": "2019-06-19T16:42:23.0Z",
                    "endDateTime": "2022-08-19T16:42:23.0Z"
                },
                "serviceSpecCharacteristicValue": [
                    {
                        "isDefault": true,
                        "validFor": {
                            "startDateTime": "2019-06-19T16:42:23.0Z",
                            "endDateTime": "2022-08-19T16:42:23.0Z"
                        },
                        "valueType": "STRING",
                        "value": "Android Kitkat CATBURY"
                    }
                ]
            }
        ]
    }
]
Back to Top