I'm pretty certain that I'm missing something here, so any help would be greatly appreciated.
I have made the following call here to make a webhook via JWT with an user account that has access to the folder.
var webhookParams = new BoxWebhookRequest
{
Target = new BoxRequestEntity()
{
Type = BoxType.folder,
Id = "***number removed for privacy***05"
},
Triggers = new List()
{
"FOLDER.CREATED"
},
Address = "myurl.com/somewhere"
};
await boxClient.WebhooksManager.CreateWebhookAsync(webhookParams);But when I get the webhook's information, I notice there is way too many nulls that I figured were automatic. Which makes me think I did something wrong:
{
"Target": {
"FolderUploadEmail": null,
"ItemCollection": null,
"SyncState": null,
"HasCollaborations": null,
"Permissions": null,
"AllowedInviteeRoles": null,
"WatermarkInfo": null,
"Metadata": null,
"TrashedAt": null,
"PurgedAt": null,
"ContentCreatedAt": null,
"ContentModifiedAt": null,
"CanNonOwnersInvite": null,
"AllowedSharedLinkAccessLevels": null,
"IsExternallyOwned": null,
"SequenceId": null,
"ETag": null,
"Name": null,
"Description": null,
"Size": null,
"PathCollection": null,
"CreatedAt": null,
"ModifiedAt": null,
"CreatedBy": null,
"ModifiedBy": null,
"OwnedBy": null,
"Parent": null,
"ItemStatus": null,
"SharedLink": null,
"Tags": null,
"Id": "***number removed for privacy***05",
"Type": "folder"
},
"CreatedBy": null,
"CreatedAt": null,
"Address": null,
"Triggers": null,
"Id": "69739274",
"Type": "webhook"
}
So anyone with experience in this arena, can you point me to in the right direction?
Also, how do I get the folder name and the folder id passed to the URL?
