@itentialopensource/adapter-salesforce_cases
Version:
This adapter integrates with system described as: Salesforce Cases
275 lines (274 loc) • 7.07 kB
YAML
openapi: 3.0.0
info:
title: SFDC - VYVE
contact: {}
version: '1.0'
servers:
- url: https://northland--vyveuat.my.salesforce.com/services
variables: {}
paths:
/data/v41.0/sobjects/Case.json:
post:
tags:
- Misc
summary: GetToken
description: ''
operationId: GetToken
parameters: []
requestBody:
description: ''
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/GetTokenRequest'
- example:
CaseNumber: '00014706'
ContactId: ''
AccountId: ''
BusinessHoursId: 01mi00000008PhMAAU
Type: null
RecordTypeId: 012i0000001AOvJAAW
Status: Resolved
Reason: null
Origin: Email- Asia
Subject: test from Postman
Priority: P3- Medium
example:
CaseNumber: '00014706'
ContactId: ''
AccountId: ''
BusinessHoursId: 01mi00000008PhMAAU
Type: null
RecordTypeId: 012i0000001AOvJAAW
Status: Resolved
Reason: null
Origin: Email- Asia
Subject: test from Postman
Priority: P3- Medium
required: true
responses:
'200':
description: ''
headers: {}
content: {}
deprecated: false
/data/v52.0/sobjects/Case.json:
post:
tags:
- Misc
summary: CreateTicket
description: ''
operationId: CreateTicket
parameters: []
requestBody:
description: ''
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/CreateTicketRequest'
- example:
Subject: Hello world
Description: Lorem ipsum dolor sit amet...
Origin: Web
AccountId: null
Case_Type__c: Technical Support
example:
Subject: Hello world
Description: Lorem ipsum dolor sit amet...
Origin: Web
AccountId: null
Case_Type__c: Technical Support
required: true
responses:
'200':
description: ''
headers: {}
content: {}
deprecated: false
/oauth2/token:
post:
tags:
- Misc
summary: PostGetToken
description: ''
operationId: PostGetToken
parameters:
- name: Content-Type
in: header
description: ''
required: true
style: simple
schema:
enum:
- application/x-www-form-urlencoded
type: string
requestBody:
content:
application/x-www-form-urlencoded:
encoding: {}
schema:
required:
- grant_type
- client_id
- client_secret
- username
- password
type: object
properties:
grant_type:
type: string
example: password
client_id:
type: string
example: 3MVG9c1ghSpUbLl.oNsuXVru.QliQMrR_8CmJU3qlQts.GjhajdjtEflM6F.NAlDXi7N6kgBwh5vOzviyuzt9
client_secret:
type: string
example: B2E5E0AAB5B4B4F458561542D640FA9F135C9DCA5F6BF62D9E67EED63E73CBEC
username:
type: string
example: noc-c@vyvebb.com.uat
password:
type: string
example: Tnoc2021!NQZGJFWozdqejpnXpWmq2VqHt
required: false
responses:
'200':
description: ''
headers: {}
content: {}
deprecated: false
/data/v52.0/limits.json:
get:
tags:
- Misc
summary: GetLimits
description: ''
operationId: GetLimits
parameters: []
responses:
'200':
description: ''
headers: {}
content: {}
deprecated: false
/data.json:
get:
tags:
- Misc
summary: GetAPIVersions
description: ''
operationId: GetAPIVersions
parameters: []
responses:
'200':
description: ''
headers: {}
content: {}
deprecated: false
security: []
/data/v52.0/sobjects/Case/50003000003JNroAAG.json:
get:
tags:
- Misc
summary: GetTicket
description: ''
operationId: GetTicket
parameters: []
responses:
'200':
description: ''
headers: {}
content: {}
deprecated: false
components:
schemas:
GetTokenRequest:
title: GetTokenRequest
required:
- CaseNumber
- ContactId
- AccountId
- BusinessHoursId
- Type
- RecordTypeId
- Status
- Reason
- Origin
- Subject
- Priority
type: object
properties:
CaseNumber:
type: string
ContactId:
type: string
AccountId:
type: string
BusinessHoursId:
type: string
Type:
type: string
nullable: true
RecordTypeId:
type: string
Status:
type: string
Reason:
type: string
nullable: true
Origin:
type: string
Subject:
type: string
Priority:
type: string
example:
CaseNumber: '00014706'
ContactId: ''
AccountId: ''
BusinessHoursId: 01mi00000008PhMAAU
Type: null
RecordTypeId: 012i0000001AOvJAAW
Status: Resolved
Reason: null
Origin: Email- Asia
Subject: test from Postman
Priority: P3- Medium
CreateTicketRequest:
title: CreateTicketRequest
required:
- Subject
- Description
- Origin
- AccountId
- Case_Type__c
type: object
properties:
Subject:
type: string
Description:
type: string
Origin:
type: string
AccountId:
type: string
nullable: true
Case_Type__c:
type: string
example:
Subject: Hello world
Description: Lorem ipsum dolor sit amet...
Origin: Web
AccountId: null
Case_Type__c: Technical Support
securitySchemes:
httpBearer:
type: http
scheme: bearer
security:
- httpBearer: []
tags:
- name: Misc
description: ''