v3 StudentProgram > StudentProgramAssociation Scripts

JSON

JSON For scenarios
Scenario 1
POST http://apicert.doubleline.us:80/api/api/v2.0/2016/studentProgramAssociations
{
	"educationOrganizationReference": {
		"educationOrganizationId": 255901
	},
	"programReference": {
		"educationOrganizationId": 255901,
		"type": "Gifted and Talented",
		"name": "Gifted and Talented"
	},
	"studentReference": {
		"studentUniqueId": "111111"
	},
	"beginDate": "[Current School Year]-08-23",
	"services": []
}
 
 
Scenario 2
POST http://apicert.doubleline.us:80/api/api/v2.0/2016/studentProgramAssociations
{
	"educationOrganizationReference": {
		"educationOrganizationId": 255901
	},
	"programReference": {
		"educationOrganizationId": 255901,
		"type": "Career and Technical Education",
		"name": "Career and Technical Education"
	},
	"studentReference": {
		"studentUniqueId": "222222"
	},
	"beginDate": "[Current School Year]-08-23",
	"services": []
}
Scenario 3
PUT http://apicert.doubleline.us:80/api/api/v2.0/2016/studentProgramAssociations/1a697f814afb4bc3821e2a52edbfab31
{
	"id": "1a697f814afb4bc3821e2a52edbfab31",
	"educationOrganizationReference": {
		"educationOrganizationId": 255901
	},
	"programReference": {
		"educationOrganizationId": 255901,
		"type": "Gifted and Talented",
		"name": "Gifted and Talented"
	},
	"studentReference": {
		"studentUniqueId": "111111"
	},
	"beginDate": "[Current School Year]-08-23",
	"endDate": "[Current School Year]-09-30",
	"services": []
}
 

Scenario 4
PUT http://apicert.doubleline.us:80/api/api/v2.0/2016/studentProgramAssociations/3c2515fc750f4bbc8d30446618ae9591
{
	"id": "3c2515fc750f4bbc8d30446618ae9591",
	"educationOrganizationReference": {
		"educationOrganizationId": 255901
	},
	"programReference": {
		"educationOrganizationId": 255901,
		"type": "Career and Technical Education",
		"name": "Career and Technical Education"
	},
	"studentReference": {
		"studentUniqueId": "222222"
	},
	"beginDate": "[Current School Year]-08-23",
	"endDate": "[Current School Year]-10-20",
	"services": []
}

Access the SQL verification scripts here: v3 _CertificationScripts