canEditAffiliate
Can Edit Affiliate
Returns true if IAM is the system of record for the person's data, false otherwise
/iam/resources/affiliates/{affiliateId}/canEditAttributes
Usage and SDK Samples
curl -X GET "BASE_URL/iam/resources/affiliates/{affiliateId}/canEditAttributes"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AnnexAffiliationsApi;
import java.io.File;
import java.util.*;
public class AnnexAffiliationsApiExample {
public static void main(String[] args) {
AnnexAffiliationsApi apiInstance = new AnnexAffiliationsApi();
String affiliateId = affiliateId_example; // String | The affiliate's id, either ucsbCampusId or person_id
String ucsbIdentityUit = ucsbIdentityUit_example; // String | User Identity Token
try {
'Boolean' result = apiInstance.canEditAffiliate(affiliateId, ucsbIdentityUit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AnnexAffiliationsApi#canEditAffiliate");
e.printStackTrace();
}
}
}
import io.swagger.client.api.AnnexAffiliationsApi;
public class AnnexAffiliationsApiExample {
public static void main(String[] args) {
AnnexAffiliationsApi apiInstance = new AnnexAffiliationsApi();
String affiliateId = affiliateId_example; // String | The affiliate's id, either ucsbCampusId or person_id
String ucsbIdentityUit = ucsbIdentityUit_example; // String | User Identity Token
try {
'Boolean' result = apiInstance.canEditAffiliate(affiliateId, ucsbIdentityUit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AnnexAffiliationsApi#canEditAffiliate");
e.printStackTrace();
}
}
}
String *affiliateId = affiliateId_example; // The affiliate's id, either ucsbCampusId or person_id
String *ucsbIdentityUit = ucsbIdentityUit_example; // User Identity Token (optional)
AnnexAffiliationsApi *apiInstance = [[AnnexAffiliationsApi alloc] init];
// Can Edit Affiliate
[apiInstance canEditAffiliateWith:affiliateId
ucsbIdentityUit:ucsbIdentityUit
completionHandler: ^('Boolean' output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var IamRestServices = require('iam_rest_services');
var api = new IamRestServices.AnnexAffiliationsApi()
var affiliateId = affiliateId_example; // {{String}} The affiliate's id, either ucsbCampusId or person_id
var opts = {
'ucsbIdentityUit': ucsbIdentityUit_example // {{String}} User Identity Token
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.canEditAffiliate(affiliateId, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class canEditAffiliateExample
{
public void main()
{
var apiInstance = new AnnexAffiliationsApi();
var affiliateId = affiliateId_example; // String | The affiliate's id, either ucsbCampusId or person_id
var ucsbIdentityUit = ucsbIdentityUit_example; // String | User Identity Token (optional)
try
{
// Can Edit Affiliate
'Boolean' result = apiInstance.canEditAffiliate(affiliateId, ucsbIdentityUit);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling AnnexAffiliationsApi.canEditAffiliate: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiAnnexAffiliationsApi();
$affiliateId = affiliateId_example; // String | The affiliate's id, either ucsbCampusId or person_id
$ucsbIdentityUit = ucsbIdentityUit_example; // String | User Identity Token
try {
$result = $api_instance->canEditAffiliate($affiliateId, $ucsbIdentityUit);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AnnexAffiliationsApi->canEditAffiliate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AnnexAffiliationsApi;
my $api_instance = WWW::SwaggerClient::AnnexAffiliationsApi->new();
my $affiliateId = affiliateId_example; # String | The affiliate's id, either ucsbCampusId or person_id
my $ucsbIdentityUit = ucsbIdentityUit_example; # String | User Identity Token
eval {
my $result = $api_instance->canEditAffiliate(affiliateId => $affiliateId, ucsbIdentityUit => $ucsbIdentityUit);
print Dumper($result);
};
if ($@) {
warn "Exception when calling AnnexAffiliationsApi->canEditAffiliate: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.AnnexAffiliationsApi()
affiliateId = affiliateId_example # String | The affiliate's id, either ucsbCampusId or person_id
ucsbIdentityUit = ucsbIdentityUit_example # String | User Identity Token (optional)
try:
# Can Edit Affiliate
api_response = api_instance.can_edit_affiliate(affiliateId, ucsbIdentityUit=ucsbIdentityUit)
pprint(api_response)
except ApiException as e:
print("Exception when calling AnnexAffiliationsApi->canEditAffiliate: %s\n" % e)
Parameters
Name | Description |
---|---|
affiliateId* |
String
The affiliate's id, either ucsbCampusId or person_id
Required
|
Name | Description |
---|---|
ucsb-identity-uit |
String
User Identity Token
|