curl -i -X POST \
'https://{api-domain}.cresta.com/v1/{parent=customers/*/profiles/*}/scorecards' \
-H 'Content-Type: application/json' \
-d '{
"name": "string",
"conversationName": "string",
"agentUserName": "string",
"creator": {
"name": "string",
"userId": "string",
"username": "string",
"email": "string",
"displayName": "string",
"fullName": "string",
"isDevUser": true,
"roles": [
"ROLE_UNSPECIFIED"
],
"legacyRoles": [
"ROLE_UNSPECIFIED"
],
"agentProfiles": [
{
"agentProfileId": 0,
"agentExtension": "string",
"legacy": {
"platformLoginName": "string",
"platformUserId": "string"
}
}
],
"team": "string",
"state": "ACTIVE_STATE_UNSPECIFIED",
"loginStatus": {
"loginStatus": "LOGIN_STATUS_UNSPECIFIED"
},
"manager": "string",
"externalIdmId": "string",
"platformProfiles": [
{
"platformType": "PLATFORM_TYPE_UNSPECIFIED",
"platformId": "string",
"agentExtension": "string",
"liveperson": {
"accountNumber": "string",
"loginName": "string"
},
"cisco": {
"agentExtension": "string"
},
"userFeatureGate": {
"teleportFeatures": {
"enableScreenRecordingSamplingOverride": true,
"userScreenRecordingSamplingPercent": 0
}
}
}
],
"isGuestUser": true,
"type": "USER_TYPE_UNSPECIFIED",
"profileNames": [
"string"
],
"usecases": [
"string"
],
"profileStates": {
"property1": "PROFILE_STATE_UNSPECIFIED",
"property2": "PROFILE_STATE_UNSPECIFIED"
},
"preferredProfile": "string",
"authenticationFactors": [
{
"id": "string",
"label": "string",
"type": "TYPE_UNSPECIFIED",
"enrollmentTime": "2019-08-24T14:15:22Z",
"name": "string"
}
],
"requirePasswordReset": true,
"migratedEntities": [
"MIGRATABLE_ENTITY_UNSPECIFIED"
]
},
"templateName": "string",
"comment": "string",
"totalScore": 0.1,
"scores": [
{
"criterionId": "string",
"criterionDisplayName": "string",
"chapterId": "string",
"numericValue": 0.1,
"textValue": "string",
"comment": "string",
"notApplicable": true,
"aiValue": 0.1,
"aiScored": true,
"autoFailed": true,
"commentAccessRoles": [
"ROLE_UNSPECIFIED"
]
}
],
"createTime": "2019-08-24T14:15:22Z",
"updateTime": "2019-08-24T14:15:22Z",
"submitTime": "2019-08-24T14:15:22Z",
"aiScoreTime": "2019-08-24T14:15:22Z",
"manuallyScored": true,
"autoFailed": true,
"usecaseName": "string",
"updatedBy": {
"name": "string",
"userId": "string",
"username": "string",
"email": "string",
"displayName": "string",
"fullName": "string",
"isDevUser": true,
"roles": [
"ROLE_UNSPECIFIED"
],
"legacyRoles": [
"ROLE_UNSPECIFIED"
],
"agentProfiles": [
{
"agentProfileId": 0,
"agentExtension": "string",
"legacy": {
"platformLoginName": "string",
"platformUserId": "string"
}
}
],
"team": "string",
"state": "ACTIVE_STATE_UNSPECIFIED",
"loginStatus": {
"loginStatus": "LOGIN_STATUS_UNSPECIFIED"
},
"manager": "string",
"externalIdmId": "string",
"platformProfiles": [
{
"platformType": "PLATFORM_TYPE_UNSPECIFIED",
"platformId": "string",
"agentExtension": "string",
"liveperson": {
"accountNumber": "string",
"loginName": "string"
},
"cisco": {
"agentExtension": "string"
},
"userFeatureGate": {
"teleportFeatures": {
"enableScreenRecordingSamplingOverride": true,
"userScreenRecordingSamplingPercent": 0
}
}
}
],
"isGuestUser": true,
"type": "USER_TYPE_UNSPECIFIED",
"profileNames": [
"string"
],
"usecases": [
"string"
],
"profileStates": {
"property1": "PROFILE_STATE_UNSPECIFIED",
"property2": "PROFILE_STATE_UNSPECIFIED"
},
"preferredProfile": "string",
"authenticationFactors": [
{
"id": "string",
"label": "string",
"type": "TYPE_UNSPECIFIED",
"enrollmentTime": "2019-08-24T14:15:22Z",
"name": "string"
}
],
"requirePasswordReset": true,
"migratedEntities": [
"MIGRATABLE_ENTITY_UNSPECIFIED"
]
},
"submittedBy": {
"name": "string",
"userId": "string",
"username": "string",
"email": "string",
"displayName": "string",
"fullName": "string",
"isDevUser": true,
"roles": [
"ROLE_UNSPECIFIED"
],
"legacyRoles": [
"ROLE_UNSPECIFIED"
],
"agentProfiles": [
{
"agentProfileId": 0,
"agentExtension": "string",
"legacy": {
"platformLoginName": "string",
"platformUserId": "string"
}
}
],
"team": "string",
"state": "ACTIVE_STATE_UNSPECIFIED",
"loginStatus": {
"loginStatus": "LOGIN_STATUS_UNSPECIFIED"
},
"manager": "string",
"externalIdmId": "string",
"platformProfiles": [
{
"platformType": "PLATFORM_TYPE_UNSPECIFIED",
"platformId": "string",
"agentExtension": "string",
"liveperson": {
"accountNumber": "string",
"loginName": "string"
},
"cisco": {
"agentExtension": "string"
},
"userFeatureGate": {
"teleportFeatures": {
"enableScreenRecordingSamplingOverride": true,
"userScreenRecordingSamplingPercent": 0
}
}
}
],
"isGuestUser": true,
"type": "USER_TYPE_UNSPECIFIED",
"profileNames": [
"string"
],
"usecases": [
"string"
],
"profileStates": {
"property1": "PROFILE_STATE_UNSPECIFIED",
"property2": "PROFILE_STATE_UNSPECIFIED"
},
"preferredProfile": "string",
"authenticationFactors": [
{
"id": "string",
"label": "string",
"type": "TYPE_UNSPECIFIED",
"enrollmentTime": "2019-08-24T14:15:22Z",
"name": "string"
}
],
"requirePasswordReset": true,
"migratedEntities": [
"MIGRATABLE_ENTITY_UNSPECIFIED"
]
},
"calibratedScorecardName": "string",
"calibrationConsistencyScore": 0.1,
"processInteractionTime": "2019-08-24T14:15:22Z",
"processId": "string",
"submissionSource": "SCORECARD_SUBMISSION_SOURCE_UNSPECIFIED",
"scorecardType": "SCORECARD_TYPE_UNSPECIFIED",
"referenceScorecardId": "string",
"scorecardWorkflows": [
{
"appealWorkflows": [
{
"replicaScorecard": {},
"appealRequestScorecard": {},
"appealResolveScorecard": {}
}
]
}
]
}'