// ========================================================================== // AssignContributorDto.cs // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex Group // All rights reserved. // ========================================================================== using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Squidex.Core.Apps; using System.ComponentModel.DataAnnotations; namespace Squidex.Controllers.Api.Apps.Models { public sealed class AssignContributorDto { /// /// The id of the user to add to the app (GUID). /// [Required] public string ContributorId { get; set; } /// /// The permission level as a contributor. /// [JsonConverter(typeof(StringEnumConverter))] public PermissionLevel Permission { get; set; } } }