Class UserProfilesResource.GuardianInvitationsResource.PatchRequest
Modifies a guardian invitation.
Currently, the only valid modification is to change the state from PENDING to COMPLETE. This has
the effect of withdrawing the invitation.
This method returns the following error codes:
PERMISSION_DENIEDif the current user does not have permission to manage guardians, if guardians are not enabled for the domain in question or for other access errors. *FAILED_PRECONDITIONif the guardian link is not in thePENDINGstate. *INVALID_ARGUMENTif the format of the student ID provided cannot be recognized (it is not an email address, nor auser_idfrom this API), or if the passedGuardianInvitationhas astateother thanCOMPLETE, or if it modifies fields other thanstate. *NOT_FOUNDif the student ID provided is a valid student ID, but Classroom has no record of that student, or if theidfield does not refer to a guardian invitation known to Classroom.
Inheritance
Inherited Members
Namespace: Google.Apis.Classroom.v1
Assembly: Google.Apis.Classroom.v1.dll
Syntax
public class PatchRequest : ClassroomBaseServiceRequest<GuardianInvitation>, IClientServiceRequest<GuardianInvitation>, IClientServiceRequest
Constructors
PatchRequest(IClientService, GuardianInvitation, String, String)
Constructs a new Patch request.
Declaration
public PatchRequest(IClientService service, GuardianInvitation body, string studentId, string invitationId)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| GuardianInvitation | body | |
| System.String | studentId | |
| System.String | invitationId |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
InvitationId
The id field of the GuardianInvitation to be modified.
Declaration
[RequestParameter("invitationId", RequestParameterType.Path)]
public virtual string InvitationId { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
StudentId
The ID of the student whose guardian invitation is to be modified.
Declaration
[RequestParameter("studentId", RequestParameterType.Path)]
public virtual string StudentId { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
UpdateMask
Mask that identifies which fields on the course to update. This field is required to do an update. The update will fail if invalid fields are specified. The following fields are valid:
state
When set in a query parameter, this field should be specified as
updateMask=,,...
Declaration
[RequestParameter("updateMask", RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Object |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
| Type | Description |
|---|---|
| System.Object |
Overrides
InitParameters()
Initializes Patch parameter list.
Declaration
protected override void InitParameters()