Create an export job
https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/exportJob
Request
There are no request parameters for this operation.
- application/json
objectExportJobDiscriminator Values
-
@baseType: string
When sub-classing, this defines the super-class
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships
-
@type: string
When sub-classing, this defines the sub-class entity name
-
completionDate: string
(date-time)
Date at which the job was completed
-
contentType: string
The format of the exported data
-
creationDate: string
(date-time)
Date at which the job was created
-
errorLog: string
Reason for failure
-
href: string
Reference of the export job
-
id: integer
(int64)
Identifier of the export job
-
path: string
URL of the root resource acting as the source for streaming content to the file specified by the export job
-
query: string
Used to scope the exported data
-
status: string
Allowed Values:
[ "NOT_STARTED", "RUNNING", "SUCCEEDED", "FAILED", "COMPLETED", "ERROR", "BLOCKED", "READY", "CANCELLED", "CANCELLING" ]Status of the export job -
url: string
URL of the file containing the data to be exported
object-
createdBy: string
submitter name of the job request
-
errorLogUrl: string
URL of the error Log
-
exportOptions(required): object
ExportOptionsOracle
Title:
ExportOptionsOracleRepresents a task used to export resources to a file -
exportSummary: object
exportSummary
objectExportOptionsOracle-
@baseType: string
When sub-classing, this defines the super-class
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships
-
@type: string
When sub-classing, this defines the sub-class entity name
-
exportReferenced: boolean
if referenced objects to be exported
-
filenamePrefix: string
Maximum Length:
30User defined optional file name prefix -
id: string
for a given resource type this is the id of the resource
-
lastUpdate: object
TimePeriodOracle
Title:
TimePeriodOracleValidity period of the related party -
lifecycleStatus: string
Status of the lifecycle to be exported
-
name: string
for a given resource type this is the name of the resource
-
project: object
project
-
resourceType: array
resourceType
Type of the resource to be exported seperated by comma
object-
id: integer
(int64)
Identifier of the export job
-
resources: array
resources
-
totalExportObjects: integer
Total count of the number of object exported
objectTimePeriodOracle-
endDateTime: string
(date-time)
An instant of time, ending at the TimePeriod.
-
startDateTime: string
(date-time)
An instant of time, starting at the TimePeriod
object-
id: string
Unique identifier of the project
-
name: string
Name of the project
array-
Array of:
string
Allowed Values:
[ "productRule", "package", "commercial_bundle", "service_bundle", "service", "device", "accessory", "productOffering", "productOfferingPrice", "priceplan", "productLine", "promotion", "constraint", "pricingLogicAlgorithmSpecification", "balanceElement", "productSpecification", "serviceSpecification", "usageSpecification", "customerProfileSpecification", "pricelist", "customProfileSpecification", "taxServiceProvider", "catalog", "category", "entitlement", "priceTag" ]
array-
Array of:
object ExportSummaryResource
Title:
ExportSummaryResourceThis object holds exported resource details like name and count
objectExportSummaryResource-
count: integer
Indicates the number of resource exported
-
name: string
Name of the resource exported
Response
- application/json
201 Response
objectExportJobDiscriminator Values
-
@baseType: string
When sub-classing, this defines the super-class
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships
-
@type: string
When sub-classing, this defines the sub-class entity name
-
completionDate: string
(date-time)
Date at which the job was completed
-
contentType: string
The format of the exported data
-
creationDate: string
(date-time)
Date at which the job was created
-
errorLog: string
Reason for failure
-
href: string
Reference of the export job
-
id: integer
(int64)
Identifier of the export job
-
path: string
URL of the root resource acting as the source for streaming content to the file specified by the export job
-
query: string
Used to scope the exported data
-
status: string
Allowed Values:
[ "NOT_STARTED", "RUNNING", "SUCCEEDED", "FAILED", "COMPLETED", "ERROR", "BLOCKED", "READY", "CANCELLED", "CANCELLING" ]Status of the export job -
url: string
URL of the file containing the data to be exported
object-
createdBy: string
submitter name of the job request
-
errorLogUrl: string
URL of the error Log
-
exportOptions(required): object
ExportOptionsOracle
Title:
ExportOptionsOracleRepresents a task used to export resources to a file -
exportSummary: object
exportSummary
objectExportOptionsOracle-
@baseType: string
When sub-classing, this defines the super-class
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships
-
@type: string
When sub-classing, this defines the sub-class entity name
-
exportReferenced: boolean
if referenced objects to be exported
-
filenamePrefix: string
Maximum Length:
30User defined optional file name prefix -
id: string
for a given resource type this is the id of the resource
-
lastUpdate: object
TimePeriodOracle
Title:
TimePeriodOracleValidity period of the related party -
lifecycleStatus: string
Status of the lifecycle to be exported
-
name: string
for a given resource type this is the name of the resource
-
project: object
project
-
resourceType: array
resourceType
Type of the resource to be exported seperated by comma
object-
id: integer
(int64)
Identifier of the export job
-
resources: array
resources
-
totalExportObjects: integer
Total count of the number of object exported
objectTimePeriodOracle-
endDateTime: string
(date-time)
An instant of time, ending at the TimePeriod.
-
startDateTime: string
(date-time)
An instant of time, starting at the TimePeriod
object-
id: string
Unique identifier of the project
-
name: string
Name of the project
array-
Array of:
string
Allowed Values:
[ "productRule", "package", "commercial_bundle", "service_bundle", "service", "device", "accessory", "productOffering", "productOfferingPrice", "priceplan", "productLine", "promotion", "constraint", "pricingLogicAlgorithmSpecification", "balanceElement", "productSpecification", "serviceSpecification", "usageSpecification", "customerProfileSpecification", "pricelist", "customProfileSpecification", "taxServiceProvider", "catalog", "category", "entitlement", "priceTag" ]
array-
Array of:
object ExportSummaryResource
Title:
ExportSummaryResourceThis object holds exported resource details like name and count
objectExportSummaryResource-
count: integer
Indicates the number of resource exported
-
name: string
Name of the resource exported
400 Response
objectError-
@schemaLocation: string
It provides a link to the schema describing a REST resource.
-
@type: string
The class type of a REST resource.
-
code(required): string
Application related code (as defined in the API or from a common list)
-
message: string
Text that provide more details and corrective actions related to the error. This can be shown to a client user.
-
reason(required): string
Text that explains the reason for error. This can be shown to a client user.
-
referenceError: string
url pointing to documentation describing the error
-
status: string
http error code extension like 400-2
401 Response
objectError-
@schemaLocation: string
It provides a link to the schema describing a REST resource.
-
@type: string
The class type of a REST resource.
-
code(required): string
Application related code (as defined in the API or from a common list)
-
message: string
Text that provide more details and corrective actions related to the error. This can be shown to a client user.
-
reason(required): string
Text that explains the reason for error. This can be shown to a client user.
-
referenceError: string
url pointing to documentation describing the error
-
status: string
http error code extension like 400-2
404 Response
objectError-
@schemaLocation: string
It provides a link to the schema describing a REST resource.
-
@type: string
The class type of a REST resource.
-
code(required): string
Application related code (as defined in the API or from a common list)
-
message: string
Text that provide more details and corrective actions related to the error. This can be shown to a client user.
-
reason(required): string
Text that explains the reason for error. This can be shown to a client user.
-
referenceError: string
url pointing to documentation describing the error
-
status: string
http error code extension like 400-2
405 Response
objectError-
@schemaLocation: string
It provides a link to the schema describing a REST resource.
-
@type: string
The class type of a REST resource.
-
code(required): string
Application related code (as defined in the API or from a common list)
-
message: string
Text that provide more details and corrective actions related to the error. This can be shown to a client user.
-
reason(required): string
Text that explains the reason for error. This can be shown to a client user.
-
referenceError: string
url pointing to documentation describing the error
-
status: string
http error code extension like 400-2
500 Response
objectError-
@schemaLocation: string
It provides a link to the schema describing a REST resource.
-
@type: string
The class type of a REST resource.
-
code(required): string
Application related code (as defined in the API or from a common list)
-
message: string
Text that provide more details and corrective actions related to the error. This can be shown to a client user.
-
reason(required): string
Text that explains the reason for error. This can be shown to a client user.
-
referenceError: string
url pointing to documentation describing the error
-
status: string
http error code extension like 400-2
Examples
The following examples show how to retrieve an export job by submitting a get request on the REST resource using cURL.
curl -u username:password -X POST \
'https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/exportJob' -D @create_exportjob.json | json_ppBased on resource type
Request Header
The following shows an example of the response header.
{
{
"exportOptions": {
"resourceType": ["package", "commercial_bundle", "service_bundle", "service", "device", "accessory", "priceplan", "catalog", "category", "pricingLogicAlgorithmSpecification", "constraint", "productSpecification"],
"exportReferenced": false,
"filenamePrefix": "FileExport001",
"lifecycleStatus": "In design"
}
}Response Body
The following example shows the contents of the response body in JSON format
{
"id": 130011,
"@type": "ExportJobOracle",
"status": "SUCCEEDED",
"creationDate": "2021-03-11 11:51:02.145",
"completionDate": "",
"exportOptions": {
"exportReferenced": false,
"filenamePrefix": "FileExport001",
"lifecycleStatus": "In design",
"resourceType": [
"package",
"commercial_bundle",
"service_bundle",
"service",
"device",
"accessory",
"priceplan",
"catalog",
"category",
"pricingLogicAlgorithmSpecification",
"constraint",
"productSpecification"
]
},
"createdBy": "booth",
"url": "v1/exportFile/FileExport001_130011.json",
"exportSummary": {
"id": 130011,
"totalExportObjects": 55,
"resources": [
{
"name": "productOfferingPrice",
"count": 13
},
{
"name": "category",
"count": 3
},
{
"name": "catalog",
"count": 2
},
{
"name": "productSpecification",
"count": 12
},
{
"name": "productOffering",
"count": 25
}
]
}
}
Based on individual resource
Request Header
The following shows an example of the request header.
{
{
"exportOptions": {
"resourceType": ["package"],
"exportReferenced": false,
"filenamePrefix": "Package001",
"name": "BOF_27_1_2021_18_7_58"
}
}
Response Body
The following example shows the contents of the response body in JSON format
{
"id": 129836,
"@type": "ExportJobOracle",
"status": "SUCCEEDED",
"creationDate": "2021-03-11 10:24:48.571",
"completionDate": "2021-03-11 10:26:27.307",
"exportOptions": {
"exportReferenced": true,
"filenamePrefix": "Package001",
"resourceType": [
"package"
],
"id": "BOF_27_1_2021_18_7_58",
"name": "BOF_27_1_2021_18_7_58"
},
"createdBy": "booth",
"path": "package",
"url": "v1/exportFile/Package001_129836.json",
"exportSummary": {
"id": 129836,
"totalExportObjects": 13,
"resources": [
{
"name": "productOfferingPrice",
"count": 5
},
{
"name": "productLine",
"count": 2
},
{
"name": "balanceElement",
"count": 1
},
{
"name": "pricelist",
"count": 1
},
{
"name": "productSpecification",
"count": 1
},
{
"name": "productOffering",
"count": 3
}
]
}
}Based on lifecycle status
Request Header
The following shows an example of the request header.
{
"exportOptions": {
"resourceType": ["device"],
"exportReferenced": false,
"filenamePrefix": "POFile001",
"lifecycleStatus": "In design"
}
}
Response Body
The following example shows the contents of the response body in JSON format
{
"id": 130129,
"@type": "ExportJobOracle",
"status": "SUCCEEDED",
"creationDate": "2021-03-11 12:26:58.073",
"completionDate": "2021-03-11 12:27:39.02",
"exportOptions": {
"exportReferenced": false,
"filenamePrefix": "POFile001",
"lifecycleStatus": "In design",
"resourceType": [
"device"
]
},
"createdBy": "booth",
"path": "device",
"url": "v1/exportFile/POFile001_130129.json",
"exportSummary": {
"id": 130129,
"totalExportObjects": 18,
"resources": [
{
"name": "productOffering",
"count": 18
}
]
}
}Based on project
Request Header
Prerequisite: Complete the design of the project before exporting. The following shows an example of the request header.
{
"exportOptions": {
"project": {
"name": "MarchRegProj2027",
"id": "MarchRegProj2027"
},
"filenamePrefix": "MyProjPromO123"
}
}Response Body
The following example shows the contents of the response body in JSON format
{
"id": 130088,
"@type": "ExportJobOracle",
"status": "SUCCEEDED",
"creationDate": "2021-03-11 12:05:38.863",
"completionDate": "2021-03-11 12:06:37.784",
"exportOptions": {
"exportReferenced": false,
"project": {
"id": "MarchRegProj2027",
"name": "MarchRegProj2027"
},
"filenamePrefix": "MyProjPromO123"
},
"createdBy": "booth",
"url": "v1/exportFile/MyProjPromO123_130088.json",
"exportSummary": {
"id": 130088,
"totalExportObjects": 2,
"resources": [
{
"name": "category",
"count": 1
},
{
"name": "catalog",
"count": 1
}
]
}
}