# projectTypeId nur sporadisch gesetzt

**URL:** <https://community.awork.com/t/projecttypeid-nur-sporadisch-gesetzt/3544>\
**Category:** Developer Forum\
**Created:** [30. Mai 2025 um 16:50 UTC](https://community.awork.com/t/projecttypeid-nur-sporadisch-gesetzt/3544 "2025-05-30T16:50:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andreas.brus](https://avatars.discourse-cdn.com/v4/letter/a/ad7895/32.png) [@andreas.brus](https://community.awork.com/u/andreas.brus)\
**Post date:** [30. Mai 2025 um 16:50 UTC](https://community.awork.com/t/projecttypeid-nur-sporadisch-gesetzt/3544/1 "2025-05-30T16:50:21Z")

</div>

In der Web-Oberfläche und in der App sind für alle Projekte die Projekt-Typen gesetzt.  
Über die API erhalte ich aber nur für ca. 1/3 der Projekte eine projektTypeId  
in ca. 1/3 der Fälle erhalte ich direkt auf oberster Ebene:

```auto
projectTypeId

```

Wenn der Wert projectTypeId gesetz ist, dann gibt es meist auch das projectType Objekt

```auto
projectType":{"isArchived":false,"icon":"code","name":"Entwicklung","id":"0384d271-c07f-4a1b-80f8-c9ea282a841c"}

```

Aber bei mehr als der Hälfte der Projekte ist keines von beiden im Objekt vorhanden.

Das Problem besteht für die Projekte egal ob sie über die Liste

```auto
/projects

```

oder für die fraglichen Projekte nochmal einzeln nochmal zusätzlich über

```auto
/projects/projectId

```

Ich habe jetzt einen Tag damit verbracht meinen Code zu debuggen bis ich nun sicher bin, daß schon die API die Daten nicht liefert.  
Gruß  
Andreas Brus

---

<div class="post-metadata">

**Author:** ![Sebastian](https://dub1.discourse-cdn.com/flex013/user_avatar/community.awork.com/sebastian/32/89_2.png) [@Sebastian](https://community.awork.com/u/Sebastian)\
**Post date:** [2. Juni 2025 um 07:51 UTC](https://community.awork.com/t/projecttypeid-nur-sporadisch-gesetzt/3544/2 "2025-06-02T07:51:31Z")

</div>

Hi @andreas.brus and welcome to the community. Can you share the trace id of an example so we can check what is going on? Thank you!

---

<div class="post-metadata">

**Author:** ![Sebastian](https://dub1.discourse-cdn.com/flex013/user_avatar/community.awork.com/sebastian/32/89_2.png) [@Sebastian](https://community.awork.com/u/Sebastian)\
**Post date:** [2. Juni 2025 um 07:54 UTC](https://community.awork.com/t/projecttypeid-nur-sporadisch-gesetzt/3544/3 "2025-06-02T07:54:11Z")

</div>

Just checking the API docs, it seems like the project type is optional, so projects can be created without a type. This would explain that not all projects have a `projectTypeId` or `projectType` set. [Projects | awork API | Documentation](https://developers.awork.com/projects#creating-a-project-from-scratch)

In the UI, it is also possible to create projects without a type. So you cannot rely on this information being present.

Can you explain what you are trying to achieve?
